@contrail/cli 3.4.3 → 3.4.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/README.md +38 -1
  2. package/bin/dev +0 -0
  3. package/bin/run +0 -0
  4. package/dist/__mocks__/@contrail/sdk.d.ts +123 -123
  5. package/dist/__mocks__/@contrail/sdk.js +716 -716
  6. package/dist/api/app-extension-deployments.d.ts +2 -2
  7. package/dist/api/app-extension-deployments.js +11 -11
  8. package/dist/api/app-extension-packages.d.ts +2 -2
  9. package/dist/api/app-extension-packages.js +11 -11
  10. package/dist/api/apps.d.ts +10 -10
  11. package/dist/api/apps.js +63 -63
  12. package/dist/api/event-workflow-action-definition.d.ts +3 -3
  13. package/dist/api/event-workflow-action-definition.js +18 -18
  14. package/dist/api/event-workflow-template-definition.d.ts +7 -7
  15. package/dist/api/event-workflow-template-definition.js +26 -26
  16. package/dist/api/event-workflow-templates.d.ts +8 -8
  17. package/dist/api/event-workflow-templates.js +32 -32
  18. package/dist/api/schedules.d.ts +7 -7
  19. package/dist/api/schedules.js +32 -32
  20. package/dist/api/types.d.ts +11 -11
  21. package/dist/api/types.js +79 -79
  22. package/dist/api/users.d.ts +2 -2
  23. package/dist/api/users.js +18 -18
  24. package/dist/api/webhooks.d.ts +4 -4
  25. package/dist/api/webhooks.js +16 -16
  26. package/dist/auth/login.d.ts +3 -3
  27. package/dist/auth/login.js +221 -221
  28. package/dist/auth/login.spec.d.ts +1 -1
  29. package/dist/auth/login.spec.js +10 -10
  30. package/dist/baseFlags.d.ts +10 -10
  31. package/dist/baseFlags.js +25 -25
  32. package/dist/basecommand.d.ts +15 -15
  33. package/dist/basecommand.js +83 -83
  34. package/dist/commands/app/create.d.ts +10 -10
  35. package/dist/commands/app/create.js +96 -96
  36. package/dist/commands/app/delete.d.ts +11 -11
  37. package/dist/commands/app/delete.js +40 -40
  38. package/dist/commands/app/extension/deploy.d.ts +18 -18
  39. package/dist/commands/app/extension/deploy.js +127 -127
  40. package/dist/commands/app/extension/deployment/list.d.ts +14 -14
  41. package/dist/commands/app/extension/deployment/list.js +82 -82
  42. package/dist/commands/app/getApiKey.d.ts +11 -11
  43. package/dist/commands/app/getApiKey.js +49 -49
  44. package/dist/commands/app/init.d.ts +10 -10
  45. package/dist/commands/app/init.js +67 -67
  46. package/dist/commands/app/install.d.ts +13 -13
  47. package/dist/commands/app/install.js +135 -135
  48. package/dist/commands/app/publish.d.ts +14 -14
  49. package/dist/commands/app/publish.js +69 -69
  50. package/dist/commands/app/uninstall.d.ts +12 -12
  51. package/dist/commands/app/uninstall.js +68 -68
  52. package/dist/commands/app/upgrade.d.ts +14 -14
  53. package/dist/commands/app/upgrade.js +108 -108
  54. package/dist/commands/app/version/major.d.ts +11 -11
  55. package/dist/commands/app/version/major.js +39 -39
  56. package/dist/commands/app/version/minor.d.ts +11 -11
  57. package/dist/commands/app/version/minor.js +39 -39
  58. package/dist/commands/app/version/patch.d.ts +11 -11
  59. package/dist/commands/app/version/patch.js +39 -39
  60. package/dist/commands/config/create.d.ts +12 -12
  61. package/dist/commands/config/create.js +27 -27
  62. package/dist/commands/config/describe.d.ts +14 -14
  63. package/dist/commands/config/describe.js +46 -46
  64. package/dist/commands/config/list.d.ts +11 -11
  65. package/dist/commands/config/list.js +38 -38
  66. package/dist/commands/config/set.d.ts +16 -16
  67. package/dist/commands/config/set.js +46 -46
  68. package/dist/commands/config/use.d.ts +14 -14
  69. package/dist/commands/config/use.js +47 -47
  70. package/dist/commands/file/upload.d.ts +15 -15
  71. package/dist/commands/file/upload.js +69 -69
  72. package/dist/commands/groups/export.d.ts +14 -14
  73. package/dist/commands/groups/export.js +103 -103
  74. package/dist/commands/groups/import.d.ts +14 -14
  75. package/dist/commands/groups/import.js +190 -190
  76. package/dist/commands/instance/export.d.ts +12 -12
  77. package/dist/commands/instance/export.js +36 -36
  78. package/dist/commands/instance/import.d.ts +11 -11
  79. package/dist/commands/instance/import.js +34 -34
  80. package/dist/commands/load/colors.d.ts +14 -14
  81. package/dist/commands/load/colors.js +53 -53
  82. package/dist/commands/load/custom-entity.d.ts +14 -14
  83. package/dist/commands/load/custom-entity.js +55 -55
  84. package/dist/commands/load/line-sheet.d.ts +14 -14
  85. package/dist/commands/load/line-sheet.js +55 -55
  86. package/dist/commands/load/upload-and-load.d.ts +14 -14
  87. package/dist/commands/load/upload-and-load.js +46 -46
  88. package/dist/commands/load-local/index.d.ts +17 -0
  89. package/dist/commands/load-local/index.js +156 -0
  90. package/dist/commands/projects/export.d.ts +13 -13
  91. package/dist/commands/projects/export.js +35 -35
  92. package/dist/commands/projects/list.d.ts +10 -10
  93. package/dist/commands/projects/list.js +36 -36
  94. package/dist/commands/projects/load.d.ts +25 -25
  95. package/dist/commands/projects/load.js +198 -198
  96. package/dist/commands/types/exportOptionSetHierarchies.d.ts +11 -11
  97. package/dist/commands/types/exportOptionSetHierarchies.js +133 -133
  98. package/dist/commands/types/getAll.d.ts +21 -21
  99. package/dist/commands/types/getAll.js +180 -180
  100. package/dist/commands/types/getOptionSets.d.ts +16 -16
  101. package/dist/commands/types/getOptionSets.js +170 -170
  102. package/dist/commands/types/loadAll.d.ts +12 -12
  103. package/dist/commands/types/loadAll.js +55 -55
  104. package/dist/commands/types/mergeOptionSets.d.ts +13 -13
  105. package/dist/commands/types/mergeOptionSets.js +116 -116
  106. package/dist/commands/types/mergeTypeProperties.d.ts +15 -15
  107. package/dist/commands/types/mergeTypeProperties.js +95 -95
  108. package/dist/commands/types/parseOptionSetsHierarchyLocalFile.d.ts +14 -14
  109. package/dist/commands/types/parseOptionSetsHierarchyLocalFile.js +133 -133
  110. package/dist/commands/types/parseOptionSetsHierarchyValuesToKeysLocalFile.d.ts +14 -14
  111. package/dist/commands/types/parseOptionSetsHierarchyValuesToKeysLocalFile.js +102 -102
  112. package/dist/commands/types/parseOptionSetsLocalFiles.d.ts +39 -39
  113. package/dist/commands/types/parseOptionSetsLocalFiles.js +229 -229
  114. package/dist/commands/types/parseOptionSetsToFolderStructure.d.ts +13 -13
  115. package/dist/commands/types/parseOptionSetsToFolderStructure.js +68 -68
  116. package/dist/commands/types/parseTypesFromFiles.d.ts +14 -14
  117. package/dist/commands/types/parseTypesFromFiles.js +40 -40
  118. package/dist/commands/types/parseTypesFromLocalFiles.d.ts +14 -14
  119. package/dist/commands/types/parseTypesFromLocalFiles.js +37 -37
  120. package/dist/commands/types/parseTypesFromTemplateAndDataFromLocalFiles.d.ts +15 -15
  121. package/dist/commands/types/parseTypesFromTemplateAndDataFromLocalFiles.js +39 -39
  122. package/dist/commands/types/parseTypesFromTemplateFromLocalFiles.d.ts +14 -14
  123. package/dist/commands/types/parseTypesFromTemplateFromLocalFiles.js +38 -38
  124. package/dist/commands/types/uploadOptionSetHierarchies.d.ts +12 -12
  125. package/dist/commands/types/uploadOptionSetHierarchies.js +257 -257
  126. package/dist/commands/types/uploadOptionSets.d.ts +13 -13
  127. package/dist/commands/types/uploadOptionSets.js +155 -155
  128. package/dist/commands/types/uploadOptionSetsHierarchyLocalFile.d.ts +15 -15
  129. package/dist/commands/types/uploadOptionSetsHierarchyLocalFile.js +135 -135
  130. package/dist/commands/types/uploadRuleSets.d.ts +12 -12
  131. package/dist/commands/types/uploadRuleSets.js +197 -197
  132. package/dist/commands/types/uploadTypePolicies.d.ts +12 -12
  133. package/dist/commands/types/uploadTypePolicies.js +233 -233
  134. package/dist/commands/types/uploadTypePropertyPolicies.d.ts +13 -13
  135. package/dist/commands/types/uploadTypePropertyPolicies.js +286 -286
  136. package/dist/commands/types/uploadTypes.d.ts +13 -13
  137. package/dist/commands/types/uploadTypes.js +35 -35
  138. package/dist/commands/types/uploadUsageInfo.d.ts +15 -15
  139. package/dist/commands/types/uploadUsageInfo.js +179 -179
  140. package/dist/commands/types/uploadUsageInfo.spec.d.ts +1 -1
  141. package/dist/commands/types/uploadUsageInfo.spec.js +249 -249
  142. package/dist/commands/users/export.d.ts +14 -14
  143. package/dist/commands/users/export.js +76 -76
  144. package/dist/commands/users/import.d.ts +14 -14
  145. package/dist/commands/users/import.js +68 -68
  146. package/dist/commands/webhooks/create.d.ts +11 -11
  147. package/dist/commands/webhooks/create.js +25 -25
  148. package/dist/commands/webhooks/delete.d.ts +14 -14
  149. package/dist/commands/webhooks/delete.js +53 -53
  150. package/dist/commands/webhooks/getWebhookTrigger.d.ts +13 -13
  151. package/dist/commands/webhooks/getWebhookTrigger.js +40 -40
  152. package/dist/commands/webhooks/list.d.ts +12 -12
  153. package/dist/commands/webhooks/list.js +31 -31
  154. package/dist/commands/workflow-template-definitions/install.d.ts +10 -10
  155. package/dist/commands/workflow-template-definitions/install.js +19 -19
  156. package/dist/commands/workflow-template-definitions/list.d.ts +10 -10
  157. package/dist/commands/workflow-template-definitions/list.js +19 -19
  158. package/dist/commands/workflow-templates/delete.d.ts +10 -10
  159. package/dist/commands/workflow-templates/delete.js +19 -19
  160. package/dist/commands/workflow-templates/export.d.ts +14 -14
  161. package/dist/commands/workflow-templates/export.js +78 -78
  162. package/dist/commands/workflow-templates/list.d.ts +10 -10
  163. package/dist/commands/workflow-templates/list.js +19 -19
  164. package/dist/commands/workflow-templates/load.d.ts +13 -13
  165. package/dist/commands/workflow-templates/load.js +26 -26
  166. package/dist/common.d.ts +4 -4
  167. package/dist/common.js +18 -18
  168. package/dist/helpers/app/actions-deployer.d.ts +11 -11
  169. package/dist/helpers/app/actions-deployer.js +123 -123
  170. package/dist/helpers/app/app-config-validators.d.ts +22 -22
  171. package/dist/helpers/app/app-config-validators.js +100 -100
  172. package/dist/helpers/app/app-config-validators.spec.d.ts +1 -1
  173. package/dist/helpers/app/app-config-validators.spec.js +310 -310
  174. package/dist/helpers/app/app-deployer.d.ts +12 -12
  175. package/dist/helpers/app/app-deployer.js +278 -278
  176. package/dist/helpers/app/app-template-parsers.d.ts +14 -14
  177. package/dist/helpers/app/app-template-parsers.js +106 -106
  178. package/dist/helpers/app/extension-package-deployer.d.ts +7 -7
  179. package/dist/helpers/app/extension-package-deployer.js +175 -175
  180. package/dist/helpers/app/extensions-deployer.d.ts +9 -9
  181. package/dist/helpers/app/extensions-deployer.js +95 -95
  182. package/dist/helpers/app/load-app-config.d.ts +4 -4
  183. package/dist/helpers/app/load-app-config.js +22 -22
  184. package/dist/helpers/app/metadata-extractor.d.ts +1 -1
  185. package/dist/helpers/app/metadata-extractor.js +100 -100
  186. package/dist/helpers/app/setup-template.d.ts +8 -8
  187. package/dist/helpers/app/setup-template.js +48 -48
  188. package/dist/helpers/app/update-app-config.d.ts +2 -2
  189. package/dist/helpers/app/update-app-config.js +20 -20
  190. package/dist/helpers/app/upgrade-version.d.ts +16 -16
  191. package/dist/helpers/app/upgrade-version.js +37 -37
  192. package/dist/helpers/app/upgrade-version.spec.d.ts +1 -1
  193. package/dist/helpers/app/upgrade-version.spec.js +33 -33
  194. package/dist/helpers/colors/helpers.d.ts +12 -12
  195. package/dist/helpers/colors/helpers.js +84 -84
  196. package/dist/helpers/config/config.d.ts +16 -16
  197. package/dist/helpers/config/config.js +223 -223
  198. package/dist/helpers/file-helpers.d.ts +2 -2
  199. package/dist/helpers/file-helpers.js +36 -36
  200. package/dist/helpers/load/helpers.d.ts +20 -20
  201. package/dist/helpers/load/helpers.js +141 -141
  202. package/dist/helpers/load/helpers.spec.d.ts +1 -1
  203. package/dist/helpers/load/helpers.spec.js +62 -62
  204. package/dist/helpers/load/validators.d.ts +14 -14
  205. package/dist/helpers/load/validators.js +182 -182
  206. package/dist/helpers/load/validators.spec.d.ts +1 -1
  207. package/dist/helpers/load/validators.spec.js +450 -450
  208. package/dist/helpers/pipeline/formatters.d.ts +6 -0
  209. package/dist/helpers/pipeline/formatters.js +219 -0
  210. package/dist/helpers/projects/helpers.d.ts +3 -3
  211. package/dist/helpers/projects/helpers.js +167 -167
  212. package/dist/helpers/types/csv-parser.d.ts +1 -1
  213. package/dist/helpers/types/csv-parser.js +59 -59
  214. package/dist/helpers/types/option-set-helper.d.ts +9 -9
  215. package/dist/helpers/types/option-set-helper.js +48 -48
  216. package/dist/helpers/types/option-set-helper.spec.d.ts +1 -1
  217. package/dist/helpers/types/option-set-helper.spec.js +64 -64
  218. package/dist/helpers/types/parseOptionSetsLocalFiles.spec.d.ts +1 -1
  219. package/dist/helpers/types/parseOptionSetsLocalFiles.spec.js +285 -285
  220. package/dist/helpers/types/type-extractor.d.ts +1 -1
  221. package/dist/helpers/types/type-extractor.js +36 -36
  222. package/dist/helpers/types/type-parser.d.ts +4 -4
  223. package/dist/helpers/types/type-parser.js +119 -119
  224. package/dist/helpers/types/type-uploader.d.ts +20 -20
  225. package/dist/helpers/types/type-uploader.js +336 -336
  226. package/dist/helpers/types/type-uploader.spec.d.ts +1 -1
  227. package/dist/helpers/types/type-uploader.spec.js +266 -266
  228. package/dist/helpers/types/uploadOptionSets.spec.d.ts +1 -1
  229. package/dist/helpers/types/uploadOptionSets.spec.js +19 -19
  230. package/dist/helpers/workflow-template-definitions/workflow-template-definition-deployer.d.ts +12 -12
  231. package/dist/helpers/workflow-template-definitions/workflow-template-definition-deployer.js +158 -158
  232. package/dist/helpers/workflow-templates/helper.d.ts +20 -20
  233. package/dist/helpers/workflow-templates/helper.js +285 -285
  234. package/dist/index.d.ts +1 -1
  235. package/dist/index.js +5 -5
  236. package/dist/interfaces.d.ts +470 -470
  237. package/dist/interfaces.js +163 -163
  238. package/dist/logger.d.ts +3 -3
  239. package/dist/logger.js +33 -33
  240. package/oclif.manifest.json +85 -1
  241. package/package.json +7 -2
@@ -1,716 +1,716 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BASE_TYPE_WITH_PROPERTIES = exports.BASE_MINIMAL_TYPE = void 0;
4
- exports.BASE_MINIMAL_TYPE = {
5
- pk: 4041,
6
- id: 'QohixlUJ9Y6GHcl6',
7
- createdOn: '2023-10-17T13:59:25.629Z',
8
- updatedOn: '2023-10-17T13:59:25.629Z',
9
- createdById: 'sHBFOywiM5xIDtLJ',
10
- updatedById: 'sHBFOywiM5xIDtLJ',
11
- isArchived: false,
12
- orgId: '90IOGA_YSY2LNrjh',
13
- slug: 'color',
14
- label: 'Color',
15
- typePath: 'color',
16
- typeRootId: 'd67efdb0-2e4d-4629-a707-d18eaf14bc88',
17
- parentId: null,
18
- typeProperties: [],
19
- };
20
- exports.BASE_TYPE_WITH_PROPERTIES = {
21
- pk: 4041,
22
- id: 'QohixlUJ9Y6GHcl6',
23
- createdOn: '2023-10-17T13:59:25.629Z',
24
- updatedOn: '2023-10-17T13:59:25.629Z',
25
- createdById: 'sHBFOywiM5xIDtLJ',
26
- updatedById: 'sHBFOywiM5xIDtLJ',
27
- isArchived: false,
28
- orgId: '90IOGA_YSY2LNrjh',
29
- slug: 'color',
30
- label: 'Color',
31
- typePath: 'color',
32
- typeRootId: 'd67efdb0-2e4d-4629-a707-d18eaf14bc88',
33
- parentId: null,
34
- typePolicyIds: [],
35
- typePolicies: [],
36
- typeProperties: [
37
- {
38
- pk: 8029,
39
- id: '5PmgsTRZ9YjW4WK4',
40
- createdOn: '2023-10-17T13:59:25.649Z',
41
- updatedOn: '2023-10-17T13:59:25.649Z',
42
- createdById: 'sHBFOywiM5xIDtLJ',
43
- updatedById: 'sHBFOywiM5xIDtLJ',
44
- isArchived: false,
45
- orgId: '90IOGA_YSY2LNrjh',
46
- propertyType: 'string',
47
- slug: 'hexCode',
48
- label: 'Hex Code',
49
- editable: true,
50
- core: false,
51
- typePropertyOptionSetId: null,
52
- typePropertyUserListId: null,
53
- carryOverBehavior: null,
54
- carryOverDefault: null,
55
- copyBehavior: null,
56
- copyDefault: null,
57
- formula: null,
58
- numberFormat: null,
59
- referencedTypeRootSlug: null,
60
- referencedTypeRole: null,
61
- referencedTypeFilterProperties: null,
62
- referencedTypeId: null,
63
- referencedTypePath: null,
64
- defaultValue: null,
65
- propertyLevel: null,
66
- formulaFunction: null,
67
- validationFunction: null,
68
- description: null,
69
- apiDetails: null,
70
- notes: null,
71
- searchable: false,
72
- isFederationProperty: false,
73
- isUniqueProperty: false,
74
- isUniquePropertyInFamily: false,
75
- required: false,
76
- sequenceSeedValue: null,
77
- optionsSet: null,
78
- inherited: false,
79
- used: true,
80
- overriddenPropertySlugs: [],
81
- typePropertyPolicyIds: [],
82
- },
83
- {
84
- pk: 8028,
85
- id: 'sIKUaUYj4qMmycQx',
86
- createdOn: '2023-10-17T13:59:25.649Z',
87
- updatedOn: '2023-10-17T13:59:25.649Z',
88
- createdById: 'sHBFOywiM5xIDtLJ',
89
- updatedById: 'sHBFOywiM5xIDtLJ',
90
- isArchived: false,
91
- orgId: '90IOGA_YSY2LNrjh',
92
- propertyType: 'string',
93
- slug: 'hex',
94
- label: 'Hex',
95
- editable: true,
96
- core: false,
97
- typePropertyOptionSetId: null,
98
- typePropertyUserListId: null,
99
- carryOverBehavior: null,
100
- carryOverDefault: null,
101
- copyBehavior: null,
102
- copyDefault: null,
103
- formula: null,
104
- numberFormat: null,
105
- referencedTypeRootSlug: null,
106
- referencedTypeRole: null,
107
- referencedTypeFilterProperties: null,
108
- referencedTypeId: null,
109
- referencedTypePath: null,
110
- defaultValue: null,
111
- propertyLevel: null,
112
- formulaFunction: null,
113
- validationFunction: null,
114
- description: null,
115
- apiDetails: null,
116
- notes: null,
117
- searchable: false,
118
- isFederationProperty: false,
119
- isUniqueProperty: false,
120
- isUniquePropertyInFamily: false,
121
- required: false,
122
- sequenceSeedValue: null,
123
- optionsSet: null,
124
- inherited: false,
125
- used: true,
126
- overriddenPropertySlugs: [],
127
- typePropertyPolicyIds: [],
128
- },
129
- {
130
- pk: 8035,
131
- id: 'OcMldTg3oi4neSkL',
132
- createdOn: '2023-10-17T13:59:25.648Z',
133
- updatedOn: '2023-10-17T13:59:25.648Z',
134
- createdById: 'sHBFOywiM5xIDtLJ',
135
- updatedById: 'sHBFOywiM5xIDtLJ',
136
- isArchived: false,
137
- orgId: '90IOGA_YSY2LNrjh',
138
- propertyType: 'string',
139
- slug: 'name',
140
- label: 'Name',
141
- editable: true,
142
- core: false,
143
- typePropertyOptionSetId: null,
144
- typePropertyUserListId: null,
145
- carryOverBehavior: null,
146
- carryOverDefault: null,
147
- copyBehavior: null,
148
- copyDefault: null,
149
- formula: null,
150
- numberFormat: null,
151
- referencedTypeRootSlug: null,
152
- referencedTypeRole: null,
153
- referencedTypeFilterProperties: null,
154
- referencedTypeId: null,
155
- referencedTypePath: null,
156
- defaultValue: null,
157
- propertyLevel: null,
158
- formulaFunction: null,
159
- validationFunction: null,
160
- description: null,
161
- apiDetails: null,
162
- notes: null,
163
- searchable: false,
164
- isFederationProperty: false,
165
- isUniqueProperty: false,
166
- isUniquePropertyInFamily: false,
167
- required: false,
168
- sequenceSeedValue: null,
169
- optionsSet: null,
170
- inherited: false,
171
- used: true,
172
- overriddenPropertySlugs: [],
173
- typePropertyPolicyIds: [],
174
- },
175
- {
176
- pk: 8030,
177
- id: 'eDfXqLKN5Eug5uYD',
178
- createdOn: '2023-10-17T13:59:25.649Z',
179
- updatedOn: '2023-10-17T13:59:25.649Z',
180
- createdById: 'sHBFOywiM5xIDtLJ',
181
- updatedById: 'sHBFOywiM5xIDtLJ',
182
- isArchived: false,
183
- orgId: '90IOGA_YSY2LNrjh',
184
- propertyType: 'number',
185
- slug: 'red',
186
- label: 'Red',
187
- editable: true,
188
- core: false,
189
- typePropertyOptionSetId: null,
190
- typePropertyUserListId: null,
191
- carryOverBehavior: null,
192
- carryOverDefault: null,
193
- copyBehavior: null,
194
- copyDefault: null,
195
- formula: null,
196
- numberFormat: null,
197
- referencedTypeRootSlug: null,
198
- referencedTypeRole: null,
199
- referencedTypeFilterProperties: null,
200
- referencedTypeId: null,
201
- referencedTypePath: null,
202
- defaultValue: null,
203
- propertyLevel: null,
204
- formulaFunction: null,
205
- validationFunction: null,
206
- description: null,
207
- apiDetails: null,
208
- notes: null,
209
- searchable: false,
210
- isFederationProperty: false,
211
- isUniqueProperty: false,
212
- isUniquePropertyInFamily: false,
213
- required: false,
214
- sequenceSeedValue: null,
215
- optionsSet: null,
216
- inherited: false,
217
- used: true,
218
- overriddenPropertySlugs: [],
219
- typePropertyPolicyIds: [],
220
- },
221
- {
222
- pk: 8032,
223
- id: 'yUEGBl9fKOKIAFPG',
224
- createdOn: '2023-10-17T13:59:25.649Z',
225
- updatedOn: '2023-10-17T13:59:25.649Z',
226
- createdById: 'sHBFOywiM5xIDtLJ',
227
- updatedById: 'sHBFOywiM5xIDtLJ',
228
- isArchived: false,
229
- orgId: '90IOGA_YSY2LNrjh',
230
- propertyType: 'number',
231
- slug: 'green',
232
- label: 'Green',
233
- editable: true,
234
- core: false,
235
- typePropertyOptionSetId: null,
236
- typePropertyUserListId: null,
237
- carryOverBehavior: null,
238
- carryOverDefault: null,
239
- copyBehavior: null,
240
- copyDefault: null,
241
- formula: null,
242
- numberFormat: null,
243
- referencedTypeRootSlug: null,
244
- referencedTypeRole: null,
245
- referencedTypeFilterProperties: null,
246
- referencedTypeId: null,
247
- referencedTypePath: null,
248
- defaultValue: null,
249
- propertyLevel: null,
250
- formulaFunction: null,
251
- validationFunction: null,
252
- description: null,
253
- apiDetails: null,
254
- notes: null,
255
- searchable: false,
256
- isFederationProperty: false,
257
- isUniqueProperty: false,
258
- isUniquePropertyInFamily: false,
259
- required: false,
260
- sequenceSeedValue: null,
261
- optionsSet: null,
262
- inherited: false,
263
- used: true,
264
- overriddenPropertySlugs: [],
265
- typePropertyPolicyIds: [],
266
- },
267
- {
268
- pk: 8031,
269
- id: 'uHgR_EA7LUaZzj-f',
270
- createdOn: '2023-10-17T13:59:25.649Z',
271
- updatedOn: '2023-10-17T13:59:25.649Z',
272
- createdById: 'sHBFOywiM5xIDtLJ',
273
- updatedById: 'sHBFOywiM5xIDtLJ',
274
- isArchived: false,
275
- orgId: '90IOGA_YSY2LNrjh',
276
- propertyType: 'number',
277
- slug: 'blue',
278
- label: 'Blue',
279
- editable: true,
280
- core: false,
281
- typePropertyOptionSetId: null,
282
- typePropertyUserListId: null,
283
- carryOverBehavior: null,
284
- carryOverDefault: null,
285
- copyBehavior: null,
286
- copyDefault: null,
287
- formula: null,
288
- numberFormat: null,
289
- referencedTypeRootSlug: null,
290
- referencedTypeRole: null,
291
- referencedTypeFilterProperties: null,
292
- referencedTypeId: null,
293
- referencedTypePath: null,
294
- defaultValue: null,
295
- propertyLevel: null,
296
- formulaFunction: null,
297
- validationFunction: null,
298
- description: null,
299
- apiDetails: null,
300
- notes: null,
301
- searchable: false,
302
- isFederationProperty: false,
303
- isUniqueProperty: false,
304
- isUniquePropertyInFamily: false,
305
- required: false,
306
- sequenceSeedValue: null,
307
- optionsSet: null,
308
- inherited: false,
309
- used: true,
310
- overriddenPropertySlugs: [],
311
- typePropertyPolicyIds: [],
312
- },
313
- {
314
- pk: 8033,
315
- id: 'fNpgLXC4Xg35xN6S',
316
- createdOn: '2023-10-17T13:59:25.649Z',
317
- updatedOn: '2023-10-17T13:59:25.649Z',
318
- createdById: 'sHBFOywiM5xIDtLJ',
319
- updatedById: 'sHBFOywiM5xIDtLJ',
320
- isArchived: false,
321
- orgId: '90IOGA_YSY2LNrjh',
322
- propertyType: 'string',
323
- slug: 'rgb',
324
- label: 'RGB',
325
- editable: true,
326
- core: false,
327
- typePropertyOptionSetId: null,
328
- typePropertyUserListId: null,
329
- carryOverBehavior: null,
330
- carryOverDefault: null,
331
- copyBehavior: null,
332
- copyDefault: null,
333
- formula: null,
334
- numberFormat: null,
335
- referencedTypeRootSlug: null,
336
- referencedTypeRole: null,
337
- referencedTypeFilterProperties: null,
338
- referencedTypeId: null,
339
- referencedTypePath: null,
340
- defaultValue: null,
341
- propertyLevel: null,
342
- formulaFunction: null,
343
- validationFunction: null,
344
- description: null,
345
- apiDetails: null,
346
- notes: null,
347
- searchable: false,
348
- isFederationProperty: false,
349
- isUniqueProperty: false,
350
- isUniquePropertyInFamily: false,
351
- required: false,
352
- sequenceSeedValue: null,
353
- optionsSet: null,
354
- inherited: false,
355
- used: true,
356
- overriddenPropertySlugs: [],
357
- typePropertyPolicyIds: [],
358
- },
359
- {
360
- pk: 8034,
361
- id: 'PTCH2tKHeEQKZCaT',
362
- createdOn: '2023-10-17T13:59:25.649Z',
363
- updatedOn: '2023-10-17T13:59:25.649Z',
364
- createdById: 'sHBFOywiM5xIDtLJ',
365
- updatedById: 'sHBFOywiM5xIDtLJ',
366
- isArchived: false,
367
- orgId: '90IOGA_YSY2LNrjh',
368
- propertyType: 'string',
369
- slug: 'rgba',
370
- label: 'RGBA',
371
- editable: true,
372
- core: false,
373
- typePropertyOptionSetId: null,
374
- typePropertyUserListId: null,
375
- carryOverBehavior: null,
376
- carryOverDefault: null,
377
- copyBehavior: null,
378
- copyDefault: null,
379
- formula: null,
380
- numberFormat: null,
381
- referencedTypeRootSlug: null,
382
- referencedTypeRole: null,
383
- referencedTypeFilterProperties: null,
384
- referencedTypeId: null,
385
- referencedTypePath: null,
386
- defaultValue: null,
387
- propertyLevel: null,
388
- formulaFunction: null,
389
- validationFunction: null,
390
- description: null,
391
- apiDetails: null,
392
- notes: null,
393
- searchable: false,
394
- isFederationProperty: false,
395
- isUniqueProperty: false,
396
- isUniquePropertyInFamily: false,
397
- required: false,
398
- sequenceSeedValue: null,
399
- optionsSet: null,
400
- inherited: false,
401
- used: true,
402
- overriddenPropertySlugs: [],
403
- typePropertyPolicyIds: [],
404
- },
405
- {
406
- pk: 30428,
407
- id: 'mPw5-LH3WwJAskmV',
408
- createdOn: '2025-06-05T15:49:39.987Z',
409
- updatedOn: '2025-06-05T15:49:39.987Z',
410
- createdById: 'cjyQx_ToJ3VMqUQN',
411
- updatedById: 'cjyQx_ToJ3VMqUQN',
412
- isArchived: false,
413
- orgId: '90IOGA_YSY2LNrjh',
414
- propertyType: 'boolean',
415
- slug: 'isArchived',
416
- label: 'Archived',
417
- editable: true,
418
- core: false,
419
- typePropertyOptionSetId: null,
420
- typePropertyUserListId: null,
421
- carryOverBehavior: null,
422
- carryOverDefault: null,
423
- copyBehavior: null,
424
- copyDefault: null,
425
- formula: null,
426
- numberFormat: null,
427
- referencedTypeRootSlug: null,
428
- referencedTypeRole: null,
429
- referencedTypeFilterProperties: null,
430
- referencedTypeId: null,
431
- referencedTypePath: null,
432
- defaultValue: null,
433
- propertyLevel: null,
434
- formulaFunction: null,
435
- validationFunction: null,
436
- description: null,
437
- apiDetails: null,
438
- notes: null,
439
- searchable: false,
440
- isFederationProperty: false,
441
- isUniqueProperty: false,
442
- isUniquePropertyInFamily: false,
443
- required: false,
444
- sequenceSeedValue: null,
445
- optionsSet: null,
446
- inherited: false,
447
- used: true,
448
- overriddenPropertySlugs: [],
449
- typePropertyPolicyIds: [],
450
- },
451
- {
452
- pk: 33839,
453
- id: 'Qvay-ZyEjYH3yHcK',
454
- createdOn: '2025-08-15T16:48:29.603Z',
455
- updatedOn: '2025-08-15T16:48:29.603Z',
456
- createdById: 'cjyQx_ToJ3VMqUQN',
457
- updatedById: 'cjyQx_ToJ3VMqUQN',
458
- isArchived: false,
459
- orgId: '90IOGA_YSY2LNrjh',
460
- propertyType: 'sequence',
461
- slug: 'federatedId',
462
- label: 'Federated Id',
463
- editable: true,
464
- core: false,
465
- typePropertyOptionSetId: null,
466
- typePropertyUserListId: null,
467
- carryOverBehavior: null,
468
- carryOverDefault: null,
469
- copyBehavior: null,
470
- copyDefault: null,
471
- formula: null,
472
- numberFormat: null,
473
- referencedTypeRootSlug: null,
474
- referencedTypeRole: null,
475
- referencedTypeFilterProperties: null,
476
- referencedTypeId: null,
477
- referencedTypePath: null,
478
- defaultValue: null,
479
- propertyLevel: null,
480
- formulaFunction: null,
481
- validationFunction: null,
482
- description: null,
483
- apiDetails: null,
484
- notes: null,
485
- searchable: false,
486
- isFederationProperty: false,
487
- isUniqueProperty: false,
488
- isUniquePropertyInFamily: false,
489
- required: false,
490
- sequenceSeedValue: 1,
491
- optionsSet: null,
492
- inherited: false,
493
- used: true,
494
- overriddenPropertySlugs: [],
495
- typePropertyPolicyIds: [],
496
- },
497
- {
498
- pk: 860,
499
- id: 'abcd',
500
- createdOn: '2021-01-26T23:53:41.400Z',
501
- updatedOn: '2021-04-12T16:33:46.034Z',
502
- createdById: null,
503
- updatedById: null,
504
- isArchived: false,
505
- orgId: '',
506
- propertyType: 'date',
507
- slug: 'createdOn',
508
- label: 'Created On',
509
- editable: false,
510
- core: true,
511
- typePropertyOptionSetId: null,
512
- typePropertyUserListId: null,
513
- carryOverBehavior: null,
514
- carryOverDefault: null,
515
- copyBehavior: null,
516
- copyDefault: null,
517
- formula: null,
518
- numberFormat: null,
519
- referencedTypeRootSlug: null,
520
- referencedTypeRole: null,
521
- referencedTypeFilterProperties: null,
522
- referencedTypeId: null,
523
- referencedTypePath: null,
524
- defaultValue: null,
525
- propertyLevel: null,
526
- formulaFunction: null,
527
- validationFunction: null,
528
- description: null,
529
- apiDetails: null,
530
- notes: null,
531
- searchable: false,
532
- isFederationProperty: false,
533
- isUniqueProperty: false,
534
- isUniquePropertyInFamily: false,
535
- required: false,
536
- sequenceSeedValue: null,
537
- optionsSet: null,
538
- inherited: false,
539
- used: true,
540
- overriddenPropertySlugs: [],
541
- typePropertyPolicyIds: [],
542
- },
543
- {
544
- pk: 862,
545
- id: 'efgh',
546
- createdOn: '2021-01-26T23:53:41.400Z',
547
- updatedOn: '2021-04-12T16:33:46.191Z',
548
- createdById: null,
549
- updatedById: null,
550
- isArchived: false,
551
- orgId: '',
552
- propertyType: 'date',
553
- slug: 'updatedOn',
554
- label: 'Updated On',
555
- editable: false,
556
- core: true,
557
- typePropertyOptionSetId: null,
558
- typePropertyUserListId: null,
559
- carryOverBehavior: null,
560
- carryOverDefault: null,
561
- copyBehavior: null,
562
- copyDefault: null,
563
- formula: null,
564
- numberFormat: null,
565
- referencedTypeRootSlug: null,
566
- referencedTypeRole: null,
567
- referencedTypeFilterProperties: null,
568
- referencedTypeId: null,
569
- referencedTypePath: null,
570
- defaultValue: null,
571
- propertyLevel: null,
572
- formulaFunction: null,
573
- validationFunction: null,
574
- description: null,
575
- apiDetails: null,
576
- notes: null,
577
- searchable: false,
578
- isFederationProperty: false,
579
- isUniqueProperty: false,
580
- isUniquePropertyInFamily: false,
581
- required: false,
582
- sequenceSeedValue: null,
583
- optionsSet: null,
584
- inherited: false,
585
- used: true,
586
- overriddenPropertySlugs: [],
587
- typePropertyPolicyIds: [],
588
- },
589
- ],
590
- typePropertyPolicies: [],
591
- typeRuleSets: [],
592
- typeOptionSetHierarchyLinks: [],
593
- relations: {
594
- org: {
595
- name: 'org',
596
- entityType: 'org',
597
- cardinality: '1',
598
- },
599
- content: {
600
- name: 'content',
601
- entityType: 'content',
602
- cardinality: 'N',
603
- },
604
- comments: {
605
- name: 'comments',
606
- entityType: 'comment',
607
- cardinality: 'N',
608
- },
609
- createdBy: {
610
- name: 'createdBy',
611
- entityType: 'user',
612
- cardinality: '0_1',
613
- },
614
- updatedBy: {
615
- name: 'updatedBy',
616
- entityType: 'user',
617
- cardinality: '0_1',
618
- },
619
- workspace: {
620
- name: 'workspace',
621
- entityType: 'workspace',
622
- cardinality: '1',
623
- },
624
- primaryViewable: {
625
- name: 'primaryViewable',
626
- entityType: 'content',
627
- cardinality: '0_1',
628
- },
629
- },
630
- typeInterfaces: [
631
- {
632
- slug: 'content_holder',
633
- label: 'ContentHolder',
634
- },
635
- {
636
- slug: 'comment_holder',
637
- label: 'CommentHolder',
638
- },
639
- {
640
- slug: 'viewable',
641
- label: 'Viewable',
642
- },
643
- {
644
- slug: 'base_managed',
645
- label: 'BaseManaged',
646
- },
647
- {
648
- slug: 'org_managed',
649
- label: 'OrgManaged',
650
- },
651
- {
652
- slug: 'workspace_managed',
653
- label: 'WorkspaceManaged',
654
- },
655
- {
656
- slug: 'searchable',
657
- label: 'Searchable',
658
- },
659
- {
660
- slug: 'referenceable',
661
- label: 'Referenceable',
662
- },
663
- {
664
- slug: 'change_logged',
665
- label: 'ChangeLogged',
666
- },
667
- {
668
- slug: 'webhookable',
669
- label: 'Webhookable',
670
- },
671
- {
672
- slug: 'event_workflow-managed',
673
- label: 'EventWorkflowManaged',
674
- },
675
- {
676
- slug: 'history_managed',
677
- label: 'HistoryManaged',
678
- },
679
- ],
680
- };
681
- class Types {
682
- getType(options) {
683
- return exports.BASE_MINIMAL_TYPE;
684
- }
685
- }
686
- class Entities {
687
- get(options) {
688
- if (options.entityName === 'type' && !options.id && !options.criteria) {
689
- return [exports.BASE_MINIMAL_TYPE];
690
- }
691
- if (options.entityName === 'type' &&
692
- options.id === exports.BASE_MINIMAL_TYPE.id &&
693
- options?.relations?.includes('typeProperties')) {
694
- return exports.BASE_TYPE_WITH_PROPERTIES;
695
- }
696
- if (options.id) {
697
- return null;
698
- }
699
- return [];
700
- }
701
- create(options) {
702
- return options.object ? options.object : {};
703
- }
704
- update(options) {
705
- return options.object ? options.object : {};
706
- }
707
- delete({ id }) {
708
- return { id };
709
- }
710
- }
711
- module.exports = {
712
- Types,
713
- Entities,
714
- BASE_MINIMAL_TYPE: exports.BASE_MINIMAL_TYPE,
715
- BASE_TYPE_WITH_PROPERTIES: exports.BASE_TYPE_WITH_PROPERTIES,
716
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BASE_TYPE_WITH_PROPERTIES = exports.BASE_MINIMAL_TYPE = void 0;
4
+ exports.BASE_MINIMAL_TYPE = {
5
+ pk: 4041,
6
+ id: 'QohixlUJ9Y6GHcl6',
7
+ createdOn: '2023-10-17T13:59:25.629Z',
8
+ updatedOn: '2023-10-17T13:59:25.629Z',
9
+ createdById: 'sHBFOywiM5xIDtLJ',
10
+ updatedById: 'sHBFOywiM5xIDtLJ',
11
+ isArchived: false,
12
+ orgId: '90IOGA_YSY2LNrjh',
13
+ slug: 'color',
14
+ label: 'Color',
15
+ typePath: 'color',
16
+ typeRootId: 'd67efdb0-2e4d-4629-a707-d18eaf14bc88',
17
+ parentId: null,
18
+ typeProperties: [],
19
+ };
20
+ exports.BASE_TYPE_WITH_PROPERTIES = {
21
+ pk: 4041,
22
+ id: 'QohixlUJ9Y6GHcl6',
23
+ createdOn: '2023-10-17T13:59:25.629Z',
24
+ updatedOn: '2023-10-17T13:59:25.629Z',
25
+ createdById: 'sHBFOywiM5xIDtLJ',
26
+ updatedById: 'sHBFOywiM5xIDtLJ',
27
+ isArchived: false,
28
+ orgId: '90IOGA_YSY2LNrjh',
29
+ slug: 'color',
30
+ label: 'Color',
31
+ typePath: 'color',
32
+ typeRootId: 'd67efdb0-2e4d-4629-a707-d18eaf14bc88',
33
+ parentId: null,
34
+ typePolicyIds: [],
35
+ typePolicies: [],
36
+ typeProperties: [
37
+ {
38
+ pk: 8029,
39
+ id: '5PmgsTRZ9YjW4WK4',
40
+ createdOn: '2023-10-17T13:59:25.649Z',
41
+ updatedOn: '2023-10-17T13:59:25.649Z',
42
+ createdById: 'sHBFOywiM5xIDtLJ',
43
+ updatedById: 'sHBFOywiM5xIDtLJ',
44
+ isArchived: false,
45
+ orgId: '90IOGA_YSY2LNrjh',
46
+ propertyType: 'string',
47
+ slug: 'hexCode',
48
+ label: 'Hex Code',
49
+ editable: true,
50
+ core: false,
51
+ typePropertyOptionSetId: null,
52
+ typePropertyUserListId: null,
53
+ carryOverBehavior: null,
54
+ carryOverDefault: null,
55
+ copyBehavior: null,
56
+ copyDefault: null,
57
+ formula: null,
58
+ numberFormat: null,
59
+ referencedTypeRootSlug: null,
60
+ referencedTypeRole: null,
61
+ referencedTypeFilterProperties: null,
62
+ referencedTypeId: null,
63
+ referencedTypePath: null,
64
+ defaultValue: null,
65
+ propertyLevel: null,
66
+ formulaFunction: null,
67
+ validationFunction: null,
68
+ description: null,
69
+ apiDetails: null,
70
+ notes: null,
71
+ searchable: false,
72
+ isFederationProperty: false,
73
+ isUniqueProperty: false,
74
+ isUniquePropertyInFamily: false,
75
+ required: false,
76
+ sequenceSeedValue: null,
77
+ optionsSet: null,
78
+ inherited: false,
79
+ used: true,
80
+ overriddenPropertySlugs: [],
81
+ typePropertyPolicyIds: [],
82
+ },
83
+ {
84
+ pk: 8028,
85
+ id: 'sIKUaUYj4qMmycQx',
86
+ createdOn: '2023-10-17T13:59:25.649Z',
87
+ updatedOn: '2023-10-17T13:59:25.649Z',
88
+ createdById: 'sHBFOywiM5xIDtLJ',
89
+ updatedById: 'sHBFOywiM5xIDtLJ',
90
+ isArchived: false,
91
+ orgId: '90IOGA_YSY2LNrjh',
92
+ propertyType: 'string',
93
+ slug: 'hex',
94
+ label: 'Hex',
95
+ editable: true,
96
+ core: false,
97
+ typePropertyOptionSetId: null,
98
+ typePropertyUserListId: null,
99
+ carryOverBehavior: null,
100
+ carryOverDefault: null,
101
+ copyBehavior: null,
102
+ copyDefault: null,
103
+ formula: null,
104
+ numberFormat: null,
105
+ referencedTypeRootSlug: null,
106
+ referencedTypeRole: null,
107
+ referencedTypeFilterProperties: null,
108
+ referencedTypeId: null,
109
+ referencedTypePath: null,
110
+ defaultValue: null,
111
+ propertyLevel: null,
112
+ formulaFunction: null,
113
+ validationFunction: null,
114
+ description: null,
115
+ apiDetails: null,
116
+ notes: null,
117
+ searchable: false,
118
+ isFederationProperty: false,
119
+ isUniqueProperty: false,
120
+ isUniquePropertyInFamily: false,
121
+ required: false,
122
+ sequenceSeedValue: null,
123
+ optionsSet: null,
124
+ inherited: false,
125
+ used: true,
126
+ overriddenPropertySlugs: [],
127
+ typePropertyPolicyIds: [],
128
+ },
129
+ {
130
+ pk: 8035,
131
+ id: 'OcMldTg3oi4neSkL',
132
+ createdOn: '2023-10-17T13:59:25.648Z',
133
+ updatedOn: '2023-10-17T13:59:25.648Z',
134
+ createdById: 'sHBFOywiM5xIDtLJ',
135
+ updatedById: 'sHBFOywiM5xIDtLJ',
136
+ isArchived: false,
137
+ orgId: '90IOGA_YSY2LNrjh',
138
+ propertyType: 'string',
139
+ slug: 'name',
140
+ label: 'Name',
141
+ editable: true,
142
+ core: false,
143
+ typePropertyOptionSetId: null,
144
+ typePropertyUserListId: null,
145
+ carryOverBehavior: null,
146
+ carryOverDefault: null,
147
+ copyBehavior: null,
148
+ copyDefault: null,
149
+ formula: null,
150
+ numberFormat: null,
151
+ referencedTypeRootSlug: null,
152
+ referencedTypeRole: null,
153
+ referencedTypeFilterProperties: null,
154
+ referencedTypeId: null,
155
+ referencedTypePath: null,
156
+ defaultValue: null,
157
+ propertyLevel: null,
158
+ formulaFunction: null,
159
+ validationFunction: null,
160
+ description: null,
161
+ apiDetails: null,
162
+ notes: null,
163
+ searchable: false,
164
+ isFederationProperty: false,
165
+ isUniqueProperty: false,
166
+ isUniquePropertyInFamily: false,
167
+ required: false,
168
+ sequenceSeedValue: null,
169
+ optionsSet: null,
170
+ inherited: false,
171
+ used: true,
172
+ overriddenPropertySlugs: [],
173
+ typePropertyPolicyIds: [],
174
+ },
175
+ {
176
+ pk: 8030,
177
+ id: 'eDfXqLKN5Eug5uYD',
178
+ createdOn: '2023-10-17T13:59:25.649Z',
179
+ updatedOn: '2023-10-17T13:59:25.649Z',
180
+ createdById: 'sHBFOywiM5xIDtLJ',
181
+ updatedById: 'sHBFOywiM5xIDtLJ',
182
+ isArchived: false,
183
+ orgId: '90IOGA_YSY2LNrjh',
184
+ propertyType: 'number',
185
+ slug: 'red',
186
+ label: 'Red',
187
+ editable: true,
188
+ core: false,
189
+ typePropertyOptionSetId: null,
190
+ typePropertyUserListId: null,
191
+ carryOverBehavior: null,
192
+ carryOverDefault: null,
193
+ copyBehavior: null,
194
+ copyDefault: null,
195
+ formula: null,
196
+ numberFormat: null,
197
+ referencedTypeRootSlug: null,
198
+ referencedTypeRole: null,
199
+ referencedTypeFilterProperties: null,
200
+ referencedTypeId: null,
201
+ referencedTypePath: null,
202
+ defaultValue: null,
203
+ propertyLevel: null,
204
+ formulaFunction: null,
205
+ validationFunction: null,
206
+ description: null,
207
+ apiDetails: null,
208
+ notes: null,
209
+ searchable: false,
210
+ isFederationProperty: false,
211
+ isUniqueProperty: false,
212
+ isUniquePropertyInFamily: false,
213
+ required: false,
214
+ sequenceSeedValue: null,
215
+ optionsSet: null,
216
+ inherited: false,
217
+ used: true,
218
+ overriddenPropertySlugs: [],
219
+ typePropertyPolicyIds: [],
220
+ },
221
+ {
222
+ pk: 8032,
223
+ id: 'yUEGBl9fKOKIAFPG',
224
+ createdOn: '2023-10-17T13:59:25.649Z',
225
+ updatedOn: '2023-10-17T13:59:25.649Z',
226
+ createdById: 'sHBFOywiM5xIDtLJ',
227
+ updatedById: 'sHBFOywiM5xIDtLJ',
228
+ isArchived: false,
229
+ orgId: '90IOGA_YSY2LNrjh',
230
+ propertyType: 'number',
231
+ slug: 'green',
232
+ label: 'Green',
233
+ editable: true,
234
+ core: false,
235
+ typePropertyOptionSetId: null,
236
+ typePropertyUserListId: null,
237
+ carryOverBehavior: null,
238
+ carryOverDefault: null,
239
+ copyBehavior: null,
240
+ copyDefault: null,
241
+ formula: null,
242
+ numberFormat: null,
243
+ referencedTypeRootSlug: null,
244
+ referencedTypeRole: null,
245
+ referencedTypeFilterProperties: null,
246
+ referencedTypeId: null,
247
+ referencedTypePath: null,
248
+ defaultValue: null,
249
+ propertyLevel: null,
250
+ formulaFunction: null,
251
+ validationFunction: null,
252
+ description: null,
253
+ apiDetails: null,
254
+ notes: null,
255
+ searchable: false,
256
+ isFederationProperty: false,
257
+ isUniqueProperty: false,
258
+ isUniquePropertyInFamily: false,
259
+ required: false,
260
+ sequenceSeedValue: null,
261
+ optionsSet: null,
262
+ inherited: false,
263
+ used: true,
264
+ overriddenPropertySlugs: [],
265
+ typePropertyPolicyIds: [],
266
+ },
267
+ {
268
+ pk: 8031,
269
+ id: 'uHgR_EA7LUaZzj-f',
270
+ createdOn: '2023-10-17T13:59:25.649Z',
271
+ updatedOn: '2023-10-17T13:59:25.649Z',
272
+ createdById: 'sHBFOywiM5xIDtLJ',
273
+ updatedById: 'sHBFOywiM5xIDtLJ',
274
+ isArchived: false,
275
+ orgId: '90IOGA_YSY2LNrjh',
276
+ propertyType: 'number',
277
+ slug: 'blue',
278
+ label: 'Blue',
279
+ editable: true,
280
+ core: false,
281
+ typePropertyOptionSetId: null,
282
+ typePropertyUserListId: null,
283
+ carryOverBehavior: null,
284
+ carryOverDefault: null,
285
+ copyBehavior: null,
286
+ copyDefault: null,
287
+ formula: null,
288
+ numberFormat: null,
289
+ referencedTypeRootSlug: null,
290
+ referencedTypeRole: null,
291
+ referencedTypeFilterProperties: null,
292
+ referencedTypeId: null,
293
+ referencedTypePath: null,
294
+ defaultValue: null,
295
+ propertyLevel: null,
296
+ formulaFunction: null,
297
+ validationFunction: null,
298
+ description: null,
299
+ apiDetails: null,
300
+ notes: null,
301
+ searchable: false,
302
+ isFederationProperty: false,
303
+ isUniqueProperty: false,
304
+ isUniquePropertyInFamily: false,
305
+ required: false,
306
+ sequenceSeedValue: null,
307
+ optionsSet: null,
308
+ inherited: false,
309
+ used: true,
310
+ overriddenPropertySlugs: [],
311
+ typePropertyPolicyIds: [],
312
+ },
313
+ {
314
+ pk: 8033,
315
+ id: 'fNpgLXC4Xg35xN6S',
316
+ createdOn: '2023-10-17T13:59:25.649Z',
317
+ updatedOn: '2023-10-17T13:59:25.649Z',
318
+ createdById: 'sHBFOywiM5xIDtLJ',
319
+ updatedById: 'sHBFOywiM5xIDtLJ',
320
+ isArchived: false,
321
+ orgId: '90IOGA_YSY2LNrjh',
322
+ propertyType: 'string',
323
+ slug: 'rgb',
324
+ label: 'RGB',
325
+ editable: true,
326
+ core: false,
327
+ typePropertyOptionSetId: null,
328
+ typePropertyUserListId: null,
329
+ carryOverBehavior: null,
330
+ carryOverDefault: null,
331
+ copyBehavior: null,
332
+ copyDefault: null,
333
+ formula: null,
334
+ numberFormat: null,
335
+ referencedTypeRootSlug: null,
336
+ referencedTypeRole: null,
337
+ referencedTypeFilterProperties: null,
338
+ referencedTypeId: null,
339
+ referencedTypePath: null,
340
+ defaultValue: null,
341
+ propertyLevel: null,
342
+ formulaFunction: null,
343
+ validationFunction: null,
344
+ description: null,
345
+ apiDetails: null,
346
+ notes: null,
347
+ searchable: false,
348
+ isFederationProperty: false,
349
+ isUniqueProperty: false,
350
+ isUniquePropertyInFamily: false,
351
+ required: false,
352
+ sequenceSeedValue: null,
353
+ optionsSet: null,
354
+ inherited: false,
355
+ used: true,
356
+ overriddenPropertySlugs: [],
357
+ typePropertyPolicyIds: [],
358
+ },
359
+ {
360
+ pk: 8034,
361
+ id: 'PTCH2tKHeEQKZCaT',
362
+ createdOn: '2023-10-17T13:59:25.649Z',
363
+ updatedOn: '2023-10-17T13:59:25.649Z',
364
+ createdById: 'sHBFOywiM5xIDtLJ',
365
+ updatedById: 'sHBFOywiM5xIDtLJ',
366
+ isArchived: false,
367
+ orgId: '90IOGA_YSY2LNrjh',
368
+ propertyType: 'string',
369
+ slug: 'rgba',
370
+ label: 'RGBA',
371
+ editable: true,
372
+ core: false,
373
+ typePropertyOptionSetId: null,
374
+ typePropertyUserListId: null,
375
+ carryOverBehavior: null,
376
+ carryOverDefault: null,
377
+ copyBehavior: null,
378
+ copyDefault: null,
379
+ formula: null,
380
+ numberFormat: null,
381
+ referencedTypeRootSlug: null,
382
+ referencedTypeRole: null,
383
+ referencedTypeFilterProperties: null,
384
+ referencedTypeId: null,
385
+ referencedTypePath: null,
386
+ defaultValue: null,
387
+ propertyLevel: null,
388
+ formulaFunction: null,
389
+ validationFunction: null,
390
+ description: null,
391
+ apiDetails: null,
392
+ notes: null,
393
+ searchable: false,
394
+ isFederationProperty: false,
395
+ isUniqueProperty: false,
396
+ isUniquePropertyInFamily: false,
397
+ required: false,
398
+ sequenceSeedValue: null,
399
+ optionsSet: null,
400
+ inherited: false,
401
+ used: true,
402
+ overriddenPropertySlugs: [],
403
+ typePropertyPolicyIds: [],
404
+ },
405
+ {
406
+ pk: 30428,
407
+ id: 'mPw5-LH3WwJAskmV',
408
+ createdOn: '2025-06-05T15:49:39.987Z',
409
+ updatedOn: '2025-06-05T15:49:39.987Z',
410
+ createdById: 'cjyQx_ToJ3VMqUQN',
411
+ updatedById: 'cjyQx_ToJ3VMqUQN',
412
+ isArchived: false,
413
+ orgId: '90IOGA_YSY2LNrjh',
414
+ propertyType: 'boolean',
415
+ slug: 'isArchived',
416
+ label: 'Archived',
417
+ editable: true,
418
+ core: false,
419
+ typePropertyOptionSetId: null,
420
+ typePropertyUserListId: null,
421
+ carryOverBehavior: null,
422
+ carryOverDefault: null,
423
+ copyBehavior: null,
424
+ copyDefault: null,
425
+ formula: null,
426
+ numberFormat: null,
427
+ referencedTypeRootSlug: null,
428
+ referencedTypeRole: null,
429
+ referencedTypeFilterProperties: null,
430
+ referencedTypeId: null,
431
+ referencedTypePath: null,
432
+ defaultValue: null,
433
+ propertyLevel: null,
434
+ formulaFunction: null,
435
+ validationFunction: null,
436
+ description: null,
437
+ apiDetails: null,
438
+ notes: null,
439
+ searchable: false,
440
+ isFederationProperty: false,
441
+ isUniqueProperty: false,
442
+ isUniquePropertyInFamily: false,
443
+ required: false,
444
+ sequenceSeedValue: null,
445
+ optionsSet: null,
446
+ inherited: false,
447
+ used: true,
448
+ overriddenPropertySlugs: [],
449
+ typePropertyPolicyIds: [],
450
+ },
451
+ {
452
+ pk: 33839,
453
+ id: 'Qvay-ZyEjYH3yHcK',
454
+ createdOn: '2025-08-15T16:48:29.603Z',
455
+ updatedOn: '2025-08-15T16:48:29.603Z',
456
+ createdById: 'cjyQx_ToJ3VMqUQN',
457
+ updatedById: 'cjyQx_ToJ3VMqUQN',
458
+ isArchived: false,
459
+ orgId: '90IOGA_YSY2LNrjh',
460
+ propertyType: 'sequence',
461
+ slug: 'federatedId',
462
+ label: 'Federated Id',
463
+ editable: true,
464
+ core: false,
465
+ typePropertyOptionSetId: null,
466
+ typePropertyUserListId: null,
467
+ carryOverBehavior: null,
468
+ carryOverDefault: null,
469
+ copyBehavior: null,
470
+ copyDefault: null,
471
+ formula: null,
472
+ numberFormat: null,
473
+ referencedTypeRootSlug: null,
474
+ referencedTypeRole: null,
475
+ referencedTypeFilterProperties: null,
476
+ referencedTypeId: null,
477
+ referencedTypePath: null,
478
+ defaultValue: null,
479
+ propertyLevel: null,
480
+ formulaFunction: null,
481
+ validationFunction: null,
482
+ description: null,
483
+ apiDetails: null,
484
+ notes: null,
485
+ searchable: false,
486
+ isFederationProperty: false,
487
+ isUniqueProperty: false,
488
+ isUniquePropertyInFamily: false,
489
+ required: false,
490
+ sequenceSeedValue: 1,
491
+ optionsSet: null,
492
+ inherited: false,
493
+ used: true,
494
+ overriddenPropertySlugs: [],
495
+ typePropertyPolicyIds: [],
496
+ },
497
+ {
498
+ pk: 860,
499
+ id: 'abcd',
500
+ createdOn: '2021-01-26T23:53:41.400Z',
501
+ updatedOn: '2021-04-12T16:33:46.034Z',
502
+ createdById: null,
503
+ updatedById: null,
504
+ isArchived: false,
505
+ orgId: '',
506
+ propertyType: 'date',
507
+ slug: 'createdOn',
508
+ label: 'Created On',
509
+ editable: false,
510
+ core: true,
511
+ typePropertyOptionSetId: null,
512
+ typePropertyUserListId: null,
513
+ carryOverBehavior: null,
514
+ carryOverDefault: null,
515
+ copyBehavior: null,
516
+ copyDefault: null,
517
+ formula: null,
518
+ numberFormat: null,
519
+ referencedTypeRootSlug: null,
520
+ referencedTypeRole: null,
521
+ referencedTypeFilterProperties: null,
522
+ referencedTypeId: null,
523
+ referencedTypePath: null,
524
+ defaultValue: null,
525
+ propertyLevel: null,
526
+ formulaFunction: null,
527
+ validationFunction: null,
528
+ description: null,
529
+ apiDetails: null,
530
+ notes: null,
531
+ searchable: false,
532
+ isFederationProperty: false,
533
+ isUniqueProperty: false,
534
+ isUniquePropertyInFamily: false,
535
+ required: false,
536
+ sequenceSeedValue: null,
537
+ optionsSet: null,
538
+ inherited: false,
539
+ used: true,
540
+ overriddenPropertySlugs: [],
541
+ typePropertyPolicyIds: [],
542
+ },
543
+ {
544
+ pk: 862,
545
+ id: 'efgh',
546
+ createdOn: '2021-01-26T23:53:41.400Z',
547
+ updatedOn: '2021-04-12T16:33:46.191Z',
548
+ createdById: null,
549
+ updatedById: null,
550
+ isArchived: false,
551
+ orgId: '',
552
+ propertyType: 'date',
553
+ slug: 'updatedOn',
554
+ label: 'Updated On',
555
+ editable: false,
556
+ core: true,
557
+ typePropertyOptionSetId: null,
558
+ typePropertyUserListId: null,
559
+ carryOverBehavior: null,
560
+ carryOverDefault: null,
561
+ copyBehavior: null,
562
+ copyDefault: null,
563
+ formula: null,
564
+ numberFormat: null,
565
+ referencedTypeRootSlug: null,
566
+ referencedTypeRole: null,
567
+ referencedTypeFilterProperties: null,
568
+ referencedTypeId: null,
569
+ referencedTypePath: null,
570
+ defaultValue: null,
571
+ propertyLevel: null,
572
+ formulaFunction: null,
573
+ validationFunction: null,
574
+ description: null,
575
+ apiDetails: null,
576
+ notes: null,
577
+ searchable: false,
578
+ isFederationProperty: false,
579
+ isUniqueProperty: false,
580
+ isUniquePropertyInFamily: false,
581
+ required: false,
582
+ sequenceSeedValue: null,
583
+ optionsSet: null,
584
+ inherited: false,
585
+ used: true,
586
+ overriddenPropertySlugs: [],
587
+ typePropertyPolicyIds: [],
588
+ },
589
+ ],
590
+ typePropertyPolicies: [],
591
+ typeRuleSets: [],
592
+ typeOptionSetHierarchyLinks: [],
593
+ relations: {
594
+ org: {
595
+ name: 'org',
596
+ entityType: 'org',
597
+ cardinality: '1',
598
+ },
599
+ content: {
600
+ name: 'content',
601
+ entityType: 'content',
602
+ cardinality: 'N',
603
+ },
604
+ comments: {
605
+ name: 'comments',
606
+ entityType: 'comment',
607
+ cardinality: 'N',
608
+ },
609
+ createdBy: {
610
+ name: 'createdBy',
611
+ entityType: 'user',
612
+ cardinality: '0_1',
613
+ },
614
+ updatedBy: {
615
+ name: 'updatedBy',
616
+ entityType: 'user',
617
+ cardinality: '0_1',
618
+ },
619
+ workspace: {
620
+ name: 'workspace',
621
+ entityType: 'workspace',
622
+ cardinality: '1',
623
+ },
624
+ primaryViewable: {
625
+ name: 'primaryViewable',
626
+ entityType: 'content',
627
+ cardinality: '0_1',
628
+ },
629
+ },
630
+ typeInterfaces: [
631
+ {
632
+ slug: 'content_holder',
633
+ label: 'ContentHolder',
634
+ },
635
+ {
636
+ slug: 'comment_holder',
637
+ label: 'CommentHolder',
638
+ },
639
+ {
640
+ slug: 'viewable',
641
+ label: 'Viewable',
642
+ },
643
+ {
644
+ slug: 'base_managed',
645
+ label: 'BaseManaged',
646
+ },
647
+ {
648
+ slug: 'org_managed',
649
+ label: 'OrgManaged',
650
+ },
651
+ {
652
+ slug: 'workspace_managed',
653
+ label: 'WorkspaceManaged',
654
+ },
655
+ {
656
+ slug: 'searchable',
657
+ label: 'Searchable',
658
+ },
659
+ {
660
+ slug: 'referenceable',
661
+ label: 'Referenceable',
662
+ },
663
+ {
664
+ slug: 'change_logged',
665
+ label: 'ChangeLogged',
666
+ },
667
+ {
668
+ slug: 'webhookable',
669
+ label: 'Webhookable',
670
+ },
671
+ {
672
+ slug: 'event_workflow-managed',
673
+ label: 'EventWorkflowManaged',
674
+ },
675
+ {
676
+ slug: 'history_managed',
677
+ label: 'HistoryManaged',
678
+ },
679
+ ],
680
+ };
681
+ class Types {
682
+ getType(options) {
683
+ return exports.BASE_MINIMAL_TYPE;
684
+ }
685
+ }
686
+ class Entities {
687
+ get(options) {
688
+ if (options.entityName === 'type' && !options.id && !options.criteria) {
689
+ return [exports.BASE_MINIMAL_TYPE];
690
+ }
691
+ if (options.entityName === 'type' &&
692
+ options.id === exports.BASE_MINIMAL_TYPE.id &&
693
+ options?.relations?.includes('typeProperties')) {
694
+ return exports.BASE_TYPE_WITH_PROPERTIES;
695
+ }
696
+ if (options.id) {
697
+ return null;
698
+ }
699
+ return [];
700
+ }
701
+ create(options) {
702
+ return options.object ? options.object : {};
703
+ }
704
+ update(options) {
705
+ return options.object ? options.object : {};
706
+ }
707
+ delete({ id }) {
708
+ return { id };
709
+ }
710
+ }
711
+ module.exports = {
712
+ Types,
713
+ Entities,
714
+ BASE_MINIMAL_TYPE: exports.BASE_MINIMAL_TYPE,
715
+ BASE_TYPE_WITH_PROPERTIES: exports.BASE_TYPE_WITH_PROPERTIES,
716
+ };