PromucFlow_constructor/app/client/cypress/fixtures/PartialImportAppNegative.json

551 lines
91 KiB
JSON
Raw Normal View History

{
"artifactJsonType": "APPLICATION",
"clientSchemaVersion": 1.0,
"serverSchemaVersion": 11.0,
"exportedApplication": {
"name": "Untitled application 6",
"isPublic": false,
"pages": [{ "id": "Page1", "isDefault": true }],
"publishedPages": [{ "id": "Page1", "isDefault": true }],
"viewMode": false,
"appIsExample": false,
"unreadCommentThreads": 0.0,
"unpublishedApplicationDetail": {
"appPositioning": { "type": "FIXED" },
"navigationSetting": {},
"themeSetting": { "sizing": 1.0, "density": 1.0, "appMaxWidth": "LARGE" }
},
"publishedApplicationDetail": {
"appPositioning": { "type": "FIXED" },
"navigationSetting": {},
"themeSetting": { "sizing": 1.0, "density": 1.0, "appMaxWidth": "LARGE" }
},
"color": "#F1DEFF",
"icon": "coding",
"slug": "untitled-application-6",
"unpublishedCustomJSLibs": [
{
"uidString": "jspdf_https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"
}
],
"publishedCustomJSLibs": [],
"evaluationVersion": 2.0,
"applicationVersion": 2.0,
"collapseInvisibleWidgets": true,
"isManualUpdate": false,
"deleted": false
},
"datasourceList": [
{
"datasourceConfiguration": { "url": "" },
"name": "Untitled datasource 2",
"pluginId": "google-sheets-plugin",
"messages": [],
"isAutoGenerated": false,
"gitSyncId": "65afeb7c4b703a552d18577d_26991d11-08ef-4141-a3e3-9d78b1a1c260",
"deleted": false
}
],
"customJSLibList": [
{
"name": "jspdf",
"uidString": "jspdf_https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js",
"accessor": ["jspdf"],
"url": "https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js",
"version": "2.5.1",
"defs": "{\"!name\":\"LIB/jspdf\",\"jspdf\":{\"AcroForm\":{\"ChoiceField\":{\"!type\":\"fn()\",\"prototype\":{}},\"ListBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"ComboBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"EditBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"Button\":{\"!type\":\"fn()\",\"prototype\":{}},\"PushButton\":{\"!type\":\"fn()\",\"prototype\":{}},\"RadioButton\":{\"!type\":\"fn()\",\"prototype\":{\"setAppearance\":{\"!type\":\"fn()\",\"prototype\":{}},\"createOption\":{\"!type\":\"fn()\",\"prototype\":{}}}},\"CheckBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"TextField\":{\"!type\":\"fn()\",\"prototype\":{}},\"PasswordField\":{\"!type\":\"fn()\",\"prototype\":{}},\"Appearance\":{\"CheckBox\":{\"createAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesPushDown\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesNormal\":{\"!type\":\"fn()\",\"prototype\":{}},\"OffPushDown\":{\"!type\":\"fn()\",\"prototype\":{}}},\"RadioButton\":{\"Circle\":{\"createAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"getCA\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesNormal\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesPushDown\":{\"!type\":\"fn()\",\"prototype\":{}},\"OffPushDown\":{\"!type\":\"fn()\",\"prototype\":{}}},\"Cross\":{\"createAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"getCA\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesNormal\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesPushDown\":{\"!type\":\"fn()\",\"prototype\":{}},\"OffPushDown\":{\"!type\":\"fn()\",\"prototype\":{}}}},\"createDefaultAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"internal\":{\"Bezier_C\":{\"!type\":\"number\"},\"calculateCross\":{\"!type\":\"fn()\",\"prototype\":{}},\"getWidth\":{\"!type\":\"fn()\",\"prototype\":{}},\"getHeight\":{\"!type\":\"fn()\",\"prototype\":{}}}}},\"AcroFormAppearance\":{\"CheckBox\":{\"createAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesPushDown\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesNormal\":{\"!type\":\"fn()\",\"prototype\":{}},\"OffPushDown\":{\"!type\":\"fn()\",\"prototype\":{}}},\"RadioButton\":{\"Circle\":{\"createAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"getCA\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesNormal\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesPushDown\":{\"!type\":\"fn()\",\"prototype\":{}},\"OffPushDown\":{\"!type\":\"fn()\",\"prototype\":{}}},\"Cross\":{\"createAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"getCA\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesNormal\":{\"!type\":\"fn()\",\"prototype\":{}},\"YesPushDown\":{\"!type\":\"fn()\",\"prototype\":{}},\"OffPushDown\":{\"!type\":\"fn()\",\"prototype\":{}}}},\"createDefaultAppearanceStream\":{\"!type\":\"fn()\",\"prototype\":{}},\"internal\":{\"Bezier_C\":{\"!type\":\"number\"},\"calculateCross\":{\"!type\":\"fn()\",\"prototype\":{}},\"getWidth\":{\"!type\":\"fn()\",\"prototype\":{}},\"getHeight\":{\"!type\":\"fn()\",\"prototype\":{}}}},\"AcroFormButton\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormCheckBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormChoiceField\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormComboBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormEditBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormListBox\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormPasswordField\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormPushButton\":{\"!type\":\"fn()\",\"prototype\":{}},\"AcroFormRadioButton\":{\"!type\":\"fn()\",\"prototype\":{\"setAppearance\":{\"!type\":\"fn()\",\"prototype\":{}},\"createOption\":{\"!type\":\"fn()\",\"prototype\":{}}}},\"AcroFormTextField\":{\"!type\":\"fn()\",\"prototype\":{}},\"GState\":{\"!type\":\"fn()\",\"prototype\":{\"equals\":{\"!type\":\"fn()\",\"prototype\":{}}}},\"ShadingPattern\":{\"!type\":\"fn()\",\"prototype\":{}},\"TilingPattern\":{\"!type\":\"fn()\",\"prototype\":{}},\"default\":{\"!type\":\"fn()\",\"API\":{\"events\":{\"0\":{\"0\":{\"!type\":\"string\"},\"1\":{\"!type\":\"fn()\",\"prototype\":{}},\"toString\":{\"!type\":\"fn()\",\"Symbol(src)_1.nlgkvika8m\":{\"!type\":\"strin
"deleted": false,
"policyMap": {},
"policies": [],
"userPermissions": []
}
],
"pageList": [
{
"unpublishedPage": {
"name": "Page1",
"slug": "page1",
"layouts": [
{
"viewMode": false,
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 4896.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 460.0,
"containerStyle": "none",
"snapRows": 124.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 90.0,
"minHeight": 1292.0,
"dynamicTriggerPathList": [],
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"boxShadow": "{{appsmith.theme.boxShadow.appBoxShadow}}",
"borderColor": "#E0DEDE",
"isVisibleDownload": true,
"topRow": 1.0,
"isSortable": true,
"type": "TABLE_WIDGET_V2",
"inlineEditingSaveOption": "ROW_LEVEL",
"animateLoading": true,
"dynamicBindingPathList": [
{ "key": "accentColor" },
{ "key": "borderRadius" },
{ "key": "boxShadow" },
{ "key": "tableData" },
{ "key": "primaryColumns.rowIndex.computedValue" },
{ "key": "primaryColumns.Currency.computedValue" }
],
"leftColumn": 7.0,
"delimiter": ",",
"customIsLoadingValue": "",
"defaultSelectedRowIndex": 0.0,
"flexVerticalAlignment": "start",
"accentColor": "{{appsmith.theme.colors.primaryColor}}",
"isVisibleFilters": false,
"isVisible": true,
"enableClientSideSearch": true,
"version": 2.0,
"totalRecordsCount": 0.0,
"isLoading": false,
"childStylesheet": {
"button": {
"buttonColor": "{{appsmith.theme.colors.primaryColor}}",
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"boxShadow": "none"
},
"menuButton": {
"menuColor": "{{appsmith.theme.colors.primaryColor}}",
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"boxShadow": "none"
},
"iconButton": {
"buttonColor": "{{appsmith.theme.colors.primaryColor}}",
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"boxShadow": "none"
},
"editActions": {
"saveButtonColor": "{{appsmith.theme.colors.primaryColor}}",
"saveBorderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"discardButtonColor": "{{appsmith.theme.colors.primaryColor}}",
"discardBorderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}"
}
},
"customIsLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"columnUpdatedAt": 1.73131188441e12,
"defaultSelectedRowIndices": [0.0],
"needsErrorInfo": false,
"mobileBottomRow": 62.0,
"widgetName": "Table1",
"defaultPageSize": 0.0,
"columnOrder": ["rowIndex", "Currency"],
"dynamicPropertyPathList": [],
"bottomRow": 34.0,
"columnWidthMap": {},
"parentRowSpace": 10.0,
"mobileRightColumn": 41.0,
"parentColumnSpace": 30.5625,
"dynamicTriggerPathList": [],
"borderWidth": "1",
"primaryColumns": {
"rowIndex": {
"allowCellWrapping": false,
"allowSameOptionsInNewRow": true,
"index": 1.0,
"width": 150.0,
"originalId": "rowIndex",
"id": "rowIndex",
"alias": "rowIndex",
"horizontalAlignment": "LEFT",
"verticalAlignment": "CENTER",
"columnType": "number",
"textColor": "",
"textSize": "0.875rem",
"fontStyle": "",
"enableFilter": true,
"enableSort": true,
"isVisible": true,
"isDisabled": false,
"isCellEditable": false,
"isEditable": false,
"isCellVisible": true,
"isDerived": false,
"label": "rowIndex",
"isSaveVisible": true,
"isDiscardVisible": true,
"computedValue": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( currentRow[\"rowIndex\"]))}}",
"sticky": "",
"validation": {},
"currencyCode": "USD",
"decimals": 0.0,
"thousandSeparator": true,
"notation": "standard",
"cellBackground": ""
},
"Currency": {
"allowCellWrapping": false,
"allowSameOptionsInNewRow": true,
"index": 9.0,
"width": 150.0,
"originalId": "Currency",
"id": "Currency",
"alias": "Currency",
"horizontalAlignment": "LEFT",
"verticalAlignment": "CENTER",
"columnType": "number",
"textColor": "",
"textSize": "0.875rem",
"fontStyle": "",
"enableFilter": true,
"enableSort": true,
"isVisible": true,
"isDisabled": false,
"isCellEditable": false,
"isEditable": false,
"isCellVisible": true,
"isDerived": false,
"label": "Currency",
"isSaveVisible": true,
"isDiscardVisible": true,
"computedValue": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( currentRow[\"Currency\"]))}}",
"sticky": "",
"validation": {},
"currencyCode": "USD",
"decimals": 0.0,
"thousandSeparator": true,
"notation": "standard",
"cellBackground": ""
}
},
"key": "iwmm57yz9c",
"canFreezeColumn": true,
"rightColumn": 41.0,
"textSize": "0.875rem",
"widgetId": "5njhvrk53u",
"minWidth": 450.0,
"tableData": "{{Api1.data}}",
"label": "Data",
"searchKey": "",
"parentId": "0",
"renderMode": "CANVAS",
"mobileTopRow": 34.0,
"horizontalAlignment": "LEFT",
"isVisibleSearch": true,
"responsiveBehavior": "fill",
"mobileLeftColumn": 7.0,
"isVisiblePagination": true,
"verticalAlignment": "CENTER"
},
{
"resetFormOnClick": false,
"needsErrorInfo": false,
"boxShadow": "none",
"mobileBottomRow": 79.0,
"widgetName": "Button1",
"onClick": "{{JSObject1.genPDF();}}",
"buttonColor": "{{appsmith.theme.colors.primaryColor}}",
"topRow": 42.0,
"bottomRow": 46.0,
"parentRowSpace": 10.0,
"type": "BUTTON_WIDGET",
"mobileRightColumn": 38.0,
"animateLoading": true,
"parentColumnSpace": 30.5625,
"dynamicTriggerPathList": [{ "key": "onClick" }],
"leftColumn": 22.0,
"dynamicBindingPathList": [
{ "key": "buttonColor" },
{ "key": "borderRadius" }
],
"text": "Submit",
"isDisabled": false,
"key": "dlbj0skcwr",
"rightColumn": 38.0,
"isDefaultClickDisabled": true,
"widgetId": "dlvf9dutgm",
"minWidth": 120.0,
"isVisible": true,
"recaptchaType": "V3",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"mobileTopRow": 75.0,
"responsiveBehavior": "hug",
"disabledWhenInvalid": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"mobileLeftColumn": 22.0,
"buttonVariant": "PRIMARY",
"placement": "CENTER"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page1_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "SAAS",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000.0
}
]
],
"layoutOnLoadActionErrors": [],
"validOnPageLoadActions": true,
"id": "Page1",
"deleted": false,
"policies": [],
"userPermissions": []
}
],
"userPermissions": [],
"policyMap": {}
},
"publishedPage": {
"name": "Page1",
"slug": "page1",
"layouts": [
{
"viewMode": false,
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1224.0,
"snapColumns": 16.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 1250.0,
"containerStyle": "none",
"snapRows": 33.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 4.0,
"minHeight": 1292.0,
"dynamicTriggerPathList": [],
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": []
},
"validOnPageLoadActions": true,
"id": "Page1",
"deleted": false,
"policies": [],
"userPermissions": []
}
],
"userPermissions": [],
"policyMap": {}
},
"gitSyncId": "6731c2009b98f15a88f8dd1a_645985e8-23d9-4c09-8856-82e70d30f84c",
"deleted": false
}
],
"actionList": [
{
"pluginType": "SAAS",
"pluginId": "google-sheets-plugin",
"unpublishedAction": {
"name": "Api1",
"fullyQualifiedName": "Api1",
"datasource": {
"name": "Untitled datasource 2",
"pluginId": "google-sheets-plugin",
"messages": [],
"isAutoGenerated": false,
"id": "Untitled datasource 2",
"deleted": false,
"policyMap": {},
"policies": [],
"userPermissions": []
},
"pageId": "Page1",
"actionConfiguration": {
"timeoutInMillisecond": 10000.0,
"paginationType": "NONE",
"encodeParamsToggle": true,
"selfReferencingDataPaths": [],
"formData": {
"command": { "data": "FETCH_MANY" },
"entityType": { "data": "ROWS" },
"tableHeaderIndex": { "data": "1" },
"projection": { "data": ["Currency"] },
"queryFormat": { "data": "ROWS" },
"range": { "data": "" },
"where": {
"data": {
"condition": "AND",
"children": [{ "condition": "LT" }]
}
},
"pagination": { "data": { "limit": "20", "offset": "0" } },
"smartSubstitution": { "data": true },
"sheetUrl": {
"data": "https://docs.google.com/spreadsheets/d/1DLNNumIhXhbajHGAEhWfzlgixcAu259gzAOVvLtWVpA/edit"
},
"sheetName": { "data": "Sheet1" },
"sortBy": { "data": [{ "column": "", "order": "Ascending" }] }
}
},
"runBehaviour": "ON_PAGE_LOAD",
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"userSetOnLoad": false,
"confirmBeforeExecute": false,
"policyMap": {},
"userPermissions": [],
"createdAt": "2024-11-11T08:36:25Z"
},
"publishedAction": {
"name": "Api1",
"fullyQualifiedName": "Api1",
"datasource": {
"name": "Untitled datasource 2",
"pluginId": "google-sheets-plugin",
"messages": [],
"isAutoGenerated": false,
"id": "Untitled datasource 2",
"deleted": false,
"policyMap": {},
"policies": [],
"userPermissions": []
},
"pageId": "Page1",
"actionConfiguration": {
"timeoutInMillisecond": 10000.0,
"paginationType": "NONE",
"encodeParamsToggle": true,
"selfReferencingDataPaths": [],
"formData": {
"command": { "data": "FETCH_MANY" },
"entityType": { "data": "ROWS" },
"tableHeaderIndex": { "data": "1" },
"projection": { "data": ["Currency"] },
"queryFormat": { "data": "ROWS" },
"range": { "data": "" },
"where": {
"data": {
"condition": "AND",
"children": [{ "condition": "LT" }]
}
},
"pagination": { "data": { "limit": "20", "offset": "0" } },
"smartSubstitution": { "data": true },
"sheetUrl": {
"data": "https://docs.google.com/spreadsheets/d/1DLNNumIhXhbajHGAEhWfzlgixcAu259gzAOVvLtWVpA/edit"
},
"sheetName": { "data": "Sheet1" },
"sortBy": { "data": [{ "column": "", "order": "Ascending" }] }
}
},
"runBehaviour": "ON_PAGE_LOAD",
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"userSetOnLoad": false,
"confirmBeforeExecute": false,
"policyMap": {},
"userPermissions": [],
"createdAt": "2024-11-11T08:36:25Z"
},
"gitSyncId": "6731c2009b98f15a88f8dd1a_fd49f450-6532-46cd-b42a-e716e89e9f0d",
"id": "Page1_Api1",
"deleted": false
}
],
"actionCollectionList": [
{
"unpublishedCollection": {
"name": "JSObject1",
"pageId": "Page1",
"pluginId": "js-plugin",
"pluginType": "JS",
"actions": [],
"archivedActions": [],
"body": "export default {\n\tgenPDF: () => {\n\t\tconst doc = new jspdf.jsPDF();\n\tdoc.text('Users', 20, 20);\n\t\tdoc.table(20, 30, Table1.tableData, Table1.columnOrder, {autoSize: true});\n\t\tdownload(doc.output(), 'users_list.pdf');\n\t}\n}",
"variables": [],
"userPermissions": []
},
"publishedCollection": {
"name": "JSObject1",
"pageId": "Page1",
"pluginId": "js-plugin",
"pluginType": "JS",
"actions": [],
"archivedActions": [],
"body": "export default {\n\tgenPDF: () => {\n\t\tconst doc = new jspdf.jsPDF();\n\tdoc.text('Users', 20, 20);\n\t\tdoc.table(20, 30, Table1.tableData, Table1.columnOrder, {autoSize: true});\n\t\tdownload(doc.output(), 'users_list.pdf');\n\t}\n}",
"variables": [],
"userPermissions": []
},
"gitSyncId": "6731c2009b98f15a88f8dd1a_16edcc02-f04a-48f1-9c80-c81d0167fad7",
"id": "Page1_JSObject1",
"deleted": false
},
{
"unpublishedCollection": {
"name": "JSObject2",
"pageId": "Page1",
"pluginId": "js-plugin",
"pluginType": "JS",
"actions": [],
"archivedActions": [],
"body": "export default {\n\tmyVar1: [],\n\tmyVar2: {},\n\tmyFun1 () {\n\t\tshowAlert(moment().daysInMonth().toString());\n\t},\n\tasync myFun2 () {\n\t\t//\tuse async-await or promises\n\t\t//\tawait storeValue('varName', 'hello world')\n\t}\n}",
"variables": [
{ "name": "myVar1", "value": "[]" },
{ "name": "myVar2", "value": "{}" }
],
"userPermissions": []
},
"publishedCollection": {
"name": "JSObject2",
"pageId": "Page1",
"pluginId": "js-plugin",
"pluginType": "JS",
"actions": [],
"archivedActions": [],
"body": "export default {\n\tmyVar1: [],\n\tmyVar2: {},\n\tmyFun1 () {\n\t\tshowAlert(moment().daysInMonth().toString());\n\t},\n\tasync myFun2 () {\n\t\t//\tuse async-await or promises\n\t\t//\tawait storeValue('varName', 'hello world')\n\t}\n}",
"variables": [
{ "name": "myVar1", "value": "[]" },
{ "name": "myVar2", "value": "{}" }
],
"userPermissions": []
},
"gitSyncId": "6731c2009b98f15a88f8dd1a_970f9cfe-b255-47b2-a002-f2f672866f88",
"id": "Page1_JSObject2",
"deleted": false
}
],
"editModeTheme": {
"name": "Default-New",
"displayName": "Modern",
"isSystemTheme": true,
"deleted": false
},
"publishedTheme": {
"name": "Default-New",
"displayName": "Modern",
"isSystemTheme": true,
"deleted": false
}
}