Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdpsdf-9727-json-schemas #864

Merged
merged 11 commits into from
Dec 25, 2024
3 changes: 3 additions & 0 deletions packages/schemas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p align="left"><a href="#"><img width="250" src="../../resources/netsuite_logo_simplified.png"></a></p>

# Schemas
70 changes: 70 additions & 0 deletions packages/schemas/custom-field-1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oracle/netsuite-suitecloud-sdk/refs/heads/master/packages/schemas/custom-field-1.0.0.json",
"title": "Custom Field",
"description": "Custom Field Schema Definition",
"type": "object",
"properties": {
"CustomField": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 200
},
"fieldType": {
"type": "string"
},
"selectRecordType": {
"type": "string"
},
"segment": {
"type": "boolean"
},
"@scriptId": {
"type": "string",
"maxLength": 30,
"pattern": "^f_.*$"
},
"applications": {
"type": "object",
"properties": {
"application": {
"type": "array",
"items": {
"type": "object",
"properties": {
"recordType": {
"type": "string"
}
},
"additionalProperties":false
}
}
},
"additionalProperties":false
}
},
"if": {
"properties": {
"fieldType": {
"enum": ["SELECT"]
}
}
},
"then": {
"required": ["selectRecordType"]
},
"required": [
"label",
"fieldType",
"@scriptId"
],
"additionalProperties": false
}
},
"required": [
"CustomField"
],
"additionalProperties": false
}
64 changes: 64 additions & 0 deletions packages/schemas/custom-record-1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oracle/netsuite-suitecloud-sdk/refs/heads/master/packages/schemas/custom-record-1.0.0.json",
"title": "Custom Record",
"description": "Custom Record Schema Definition",
"type": "object",
"properties": {
"CustomRecord": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 199
},
"description": {
"type": "string",
"maxLength": 999
},
"sort": {
"type": "object",
"properties": {
"line": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"direction": {
"type": "string"
},
"sequenceNumber": {
"type": "integer"
}
},
"required": [
"field",
"direction"
],
"additionalProperties":false
}
}
},
"additionalProperties":false
},
"@scriptId": {
"type": "string",
"maxLength": 40,
"pattern": "^r_.*$"
}
},
"additionalProperties": false,
"required": [
"name",
"@scriptId"
]
}
},
"required": [
"CustomRecord"
],
"additionalProperties": false
}
72 changes: 72 additions & 0 deletions packages/schemas/dataset-builder-plugin-1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oracle/netsuite-suitecloud-sdk/refs/heads/master/packages/schemas/dataset-builder-plugin-1.0.0.json",
"title": "Dataset Builder Plugin",
"description": "Dataset Builder Plugin Schema Definition",
"type": "object",
"properties": {
"DatasetBuilderPlugin": {
"type": "object",
"properties": {
"runtimeVersion": {
"type": "string"
},
"description": {
"type": "string",
"maxLength": 999
},
"isInactive": {
"type": "boolean"
},
"name": {
"type": "string",
"maxLength": 40
},
"notifyAdmins": {
"type": "boolean"
},
"notifyEmails": {
"type": "string",
"maxLength": 999
},
"notifyGroup": {
"type": "string"
},
"notifyOwner": {
"type": "boolean"
},
"notifyUser": {
"type": "boolean"
},
"owner": {
"type": "string"
},
"scriptFile": {
"type": "string",
"pattern": "^\\[.*\\.js\\]$"
},
"logLevel": {
"type": "string"
},
"status": {
"type": "string"
},
"@scriptId": {
"type": "string",
"maxLength": 40,
"pattern": "^customscript.*$"
}
},
"required": [
"name",
"scriptFile",
"@scriptId"
],
"additionalProperties": false
}
},
"required": [
"DatasetBuilderPlugin"
],
"additionalProperties": false
}
72 changes: 72 additions & 0 deletions packages/schemas/fi-connectivity-plugin-1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oracle/netsuite-suitecloud-sdk/refs/heads/master/packages/schemas/fi-connectivity-plugin-1.0.0.json",
"title": "FI Connectivity Plugin",
"description": "FI Connectivity Plugin Schema Definition",
"type": "object",
"properties": {
"FiConnectivityPlugin": {
"type": "object",
"properties": {
"runtimeVersion": {
"type": "string"
},
"description": {
"type": "string",
"maxLength": 999
},
"isInactive": {
"type": "boolean"
},
"name": {
"type": "string",
"maxLength": 40
},
"notifyAdmins": {
"type": "boolean"
},
"notifyEmails": {
"type": "string",
"maxLength": 999
},
"notifyGroup": {
"type": "string"
},
"notifyOwner": {
"type": "boolean"
},
"notifyUser": {
"type": "boolean"
},
"owner": {
"type": "string"
},
"scriptFile": {
"type": "string",
"pattern": "^\\[.*\\.js\\]$"
},
"logLevel": {
"type": "string"
},
"status": {
"type": "string"
},
"@scriptId": {
"type": "string",
"maxLength": 40,
"pattern": "^customscript.*$"
}
},
"required": [
"name",
"scriptFile",
"@scriptId"
],
"additionalProperties": false
}
},
"required": [
"FiConnectivityPlugin"
],
"additionalProperties": false
}
72 changes: 72 additions & 0 deletions packages/schemas/fi-parser-plugin-1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oracle/netsuite-suitecloud-sdk/refs/heads/master/packages/schemas/fi-parser-plugin-1.0.0.json",
"title": "FI Parser Plugin",
"description": "FI Parser Plugin Schema Definition",
"type": "object",
"properties": {
"FiParserPlugin": {
"type": "object",
"properties": {
"runtimeVersion": {
"type": "string"
},
"description": {
"type": "string",
"maxLength": 999
},
"isInactive": {
"type": "boolean"
},
"name": {
"type": "string",
"maxLength": 40
},
"notifyAdmins": {
"type": "boolean"
},
"notifyEmails": {
"type": "string",
"maxLength": 999
},
"notifyGroup": {
"type": "string"
},
"notifyOwner": {
"type": "boolean"
},
"notifyUser": {
"type": "boolean"
},
"owner": {
"type": "string"
},
"scriptFile": {
"type": "string",
"pattern": "^\\[.*\\.js\\]$"
},
"logLevel": {
"type": "string"
},
"status": {
"type": "string"
},
"@scriptId": {
"type": "string",
"maxLength": 40,
"pattern": "^customscript.*$"
}
},
"required": [
"name",
"scriptFile",
"@scriptId"
],
"additionalProperties": false
}
},
"required": [
"FiParserPlugin"
],
"additionalProperties": false
}
Loading