@aptly-as/types 1.6.3 → 1.7.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.
@@ -35,11 +35,13 @@ export declare enum AptlyPermissionModulesModel {
35
35
  /**
36
36
  * @deprecated use AptlyPermissionOrganizationModel enum
37
37
  */
38
- export declare type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'content' | 'reports' | 'support' | 'thirdParty' | 'default';
38
+ export declare type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'projectAdmin' | 'content' | 'organizationContent' | 'reports' | 'support' | 'thirdParty' | 'default';
39
39
  export declare enum AptlyPermissionOrganizationModel {
40
40
  Admin = "admin",
41
41
  Content = "content",
42
+ OrganizationContent = "organizationContent",
42
43
  Default = "default",
44
+ ProjectAdmin = "projectAdmin",
43
45
  TestingAdmin = "testingAdmin",
44
46
  Reports = "reports",
45
47
  Support = "support",
@@ -48,7 +50,7 @@ export declare enum AptlyPermissionOrganizationModel {
48
50
  /**
49
51
  * @deprecated use AptlyPermissionModel enum
50
52
  */
51
- export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationDepartments' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationOrders' | 'organizationProducts' | 'organizationProductsExtended' | 'organizationReport' | 'organizationStats' | 'organizationLogo' | 'organizationWebhooks' | 'project' | 'projectAlgorithms' | 'projectBooking' | 'projectDocuments' | 'projectInquiry' | 'projectOrders' | 'projectPages' | 'projectPeriods' | 'projectProducts' | 'projectRecommendations' | 'projectReport' | 'projectReportPrice' | 'projectTheme' | 'projectSigning' | 'projectSubcontractor' | 'projectUnits' | 'projectUnitInvites' | 'projectUnitExtraFields' | 'projectUnitExtraOptions' | 'projectUnitTemplates' | 'projectUnitTemplatesAlgorithms' | 'projectUnitTemplatesPrices' | 'projectUpsellTemplates' | 'unit' | 'unitBooking' | 'unitInquiry' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport';
53
+ export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationAlgorithms' | 'organizationBooking' | 'organizationClients' | 'organizationDepartments' | 'organizationLogo' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationOrders' | 'organizationPages' | 'organizationProducts' | 'organizationProductsExtended' | 'organizationRecommendations' | 'organizationReport' | 'organizationStats' | 'organizationUnitTemplates' | 'organizationUpsellTemplates' | 'organizationWebhooks' | 'project' | 'projectAlgorithms' | 'projectBooking' | 'projectDocuments' | 'projectInquiry' | 'projectOrders' | 'projectPages' | 'projectPeriods' | 'projectProducts' | 'projectRecommendations' | 'projectReport' | 'projectReportPrice' | 'projectTheme' | 'projectSigning' | 'projectSubcontractor' | 'projectUnits' | 'projectUnitInvites' | 'projectUnitExtraFields' | 'projectUnitExtraOptions' | 'projectUnitTemplates' | 'projectUnitTemplatesAlgorithms' | 'projectUnitTemplatesPrices' | 'projectUpsellTemplates' | 'unit' | 'unitBooking' | 'unitInquiry' | 'unitOrders' | 'unitPages' | 'unitProducts' | 'unitReport';
52
54
  export declare enum AptlyPermissionModel {
53
55
  Admin = "admin",
54
56
  AdminBilling = "adminBilling",
@@ -63,17 +65,22 @@ export declare enum AptlyPermissionModel {
63
65
  AdminOrganizations = "adminOrganizations",
64
66
  Beta = "beta",
65
67
  Organization = "organization",
68
+ OrganizationAlgorithms = "organizationAlgorithms",
66
69
  OrganizationBooking = "organizationBooking",
67
70
  OrganizationClients = "organizationClients",
68
71
  OrganizationDepartments = "organizationDepartments",
72
+ OrganizationLogo = "organizationLogo",
69
73
  OrganizationMembers = "organizationMembers",
70
74
  OrganizationOptionLabels = "organizationOptionLabels",
71
75
  OrganizationOrders = "organizationOrders",
76
+ OrganizationPages = "organizationPages",
72
77
  OrganizationProducts = "organizationProducts",
73
78
  OrganizationProductsExtended = "organizationProductsExtended",
79
+ OrganizationRecommendations = "organizationRecommendations",
74
80
  OrganizationReport = "organizationReport",
75
81
  OrganizationStats = "organizationStats",
76
- OrganizationLogo = "organizationLogo",
82
+ OrganizationUnitTemplates = "organizationUnitTemplates",
83
+ OrganizationUpsellTemplates = "organizationUpsellTemplates",
77
84
  OrganizationWebhooks = "organizationWebhooks",
78
85
  Project = "project",
79
86
  ProjectAlgorithms = "projectAlgorithms",
@@ -29,7 +29,9 @@ var AptlyPermissionOrganizationModel;
29
29
  (function (AptlyPermissionOrganizationModel) {
30
30
  AptlyPermissionOrganizationModel["Admin"] = "admin";
31
31
  AptlyPermissionOrganizationModel["Content"] = "content";
32
+ AptlyPermissionOrganizationModel["OrganizationContent"] = "organizationContent";
32
33
  AptlyPermissionOrganizationModel["Default"] = "default";
34
+ AptlyPermissionOrganizationModel["ProjectAdmin"] = "projectAdmin";
33
35
  AptlyPermissionOrganizationModel["TestingAdmin"] = "testingAdmin";
34
36
  AptlyPermissionOrganizationModel["Reports"] = "reports";
35
37
  AptlyPermissionOrganizationModel["Support"] = "support";
@@ -50,17 +52,22 @@ var AptlyPermissionModel;
50
52
  AptlyPermissionModel["AdminOrganizations"] = "adminOrganizations";
51
53
  AptlyPermissionModel["Beta"] = "beta";
52
54
  AptlyPermissionModel["Organization"] = "organization";
55
+ AptlyPermissionModel["OrganizationAlgorithms"] = "organizationAlgorithms";
53
56
  AptlyPermissionModel["OrganizationBooking"] = "organizationBooking";
54
57
  AptlyPermissionModel["OrganizationClients"] = "organizationClients";
55
58
  AptlyPermissionModel["OrganizationDepartments"] = "organizationDepartments";
59
+ AptlyPermissionModel["OrganizationLogo"] = "organizationLogo";
56
60
  AptlyPermissionModel["OrganizationMembers"] = "organizationMembers";
57
61
  AptlyPermissionModel["OrganizationOptionLabels"] = "organizationOptionLabels";
58
62
  AptlyPermissionModel["OrganizationOrders"] = "organizationOrders";
63
+ AptlyPermissionModel["OrganizationPages"] = "organizationPages";
59
64
  AptlyPermissionModel["OrganizationProducts"] = "organizationProducts";
60
65
  AptlyPermissionModel["OrganizationProductsExtended"] = "organizationProductsExtended";
66
+ AptlyPermissionModel["OrganizationRecommendations"] = "organizationRecommendations";
61
67
  AptlyPermissionModel["OrganizationReport"] = "organizationReport";
62
68
  AptlyPermissionModel["OrganizationStats"] = "organizationStats";
63
- AptlyPermissionModel["OrganizationLogo"] = "organizationLogo";
69
+ AptlyPermissionModel["OrganizationUnitTemplates"] = "organizationUnitTemplates";
70
+ AptlyPermissionModel["OrganizationUpsellTemplates"] = "organizationUpsellTemplates";
64
71
  AptlyPermissionModel["OrganizationWebhooks"] = "organizationWebhooks";
65
72
  AptlyPermissionModel["Project"] = "project";
66
73
  AptlyPermissionModel["ProjectAlgorithms"] = "projectAlgorithms";
@@ -1 +1 @@
1
- {"version":3,"file":"permission.js","sourceRoot":"","sources":["permission.ts"],"names":[],"mappings":";;;AAMA,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,2CAAa,CAAA;IACb,iDAAmB,CAAA;IACnB,uDAAyB,CAAA;AAC3B,CAAC,EALW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAKrC;AA0BD,IAAY,2BAeX;AAfD,WAAY,2BAA2B;IACrC,wDAAyB,CAAA;IACzB,kDAAmB,CAAA;IACnB,4CAAa,CAAA;IACb,kDAAmB,CAAA;IACnB,0DAA2B,CAAA;IAC3B,4DAA6B,CAAA;IAC7B,8CAAe,CAAA;IACf,oEAAqC,CAAA;IACrC,kEAAmC,CAAA;IACnC,8DAA+B,CAAA;IAC/B,kDAAmB,CAAA;IACnB,kDAAmB,CAAA;IACnB,oEAAqC,CAAA;IACrC,kEAAmC,CAAA;AACrC,CAAC,EAfW,2BAA2B,GAA3B,m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AAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,iDAAyB,CAAA;AAC3B,CAAC,EA7DW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA6D/B"}
@@ -58,7 +58,9 @@ export enum AptlyPermissionModulesModel {
58
58
  export type AptlyPermissionOrganizationModels =
59
59
  | 'testingAdmin'
60
60
  | 'admin'
61
+ | 'projectAdmin'
61
62
  | 'content'
63
+ | 'organizationContent'
62
64
  | 'reports'
63
65
  | 'support'
64
66
  | 'thirdParty'
@@ -67,7 +69,9 @@ export type AptlyPermissionOrganizationModels =
67
69
  export enum AptlyPermissionOrganizationModel {
68
70
  Admin = 'admin',
69
71
  Content = 'content',
72
+ OrganizationContent = 'organizationContent',
70
73
  Default = 'default',
74
+ ProjectAdmin = 'projectAdmin',
71
75
  TestingAdmin = 'testingAdmin',
72
76
  Reports = 'reports',
73
77
  Support = 'support',
@@ -91,17 +95,22 @@ export type AptlyPermissionModels =
91
95
  | 'adminOrganizations'
92
96
  | 'beta'
93
97
  | 'organization'
98
+ | 'organizationAlgorithms'
94
99
  | 'organizationBooking'
95
100
  | 'organizationClients'
96
101
  | 'organizationDepartments'
102
+ | 'organizationLogo'
97
103
  | 'organizationMembers'
98
104
  | 'organizationOptionLabels'
99
105
  | 'organizationOrders'
106
+ | 'organizationPages'
100
107
  | 'organizationProducts'
101
108
  | 'organizationProductsExtended'
109
+ | 'organizationRecommendations'
102
110
  | 'organizationReport'
103
111
  | 'organizationStats'
104
- | 'organizationLogo'
112
+ | 'organizationUnitTemplates'
113
+ | 'organizationUpsellTemplates'
105
114
  | 'organizationWebhooks'
106
115
  | 'project'
107
116
  | 'projectAlgorithms'
@@ -148,17 +157,22 @@ export enum AptlyPermissionModel {
148
157
  AdminOrganizations = 'adminOrganizations',
149
158
  Beta = 'beta',
150
159
  Organization = 'organization',
160
+ OrganizationAlgorithms = 'organizationAlgorithms',
151
161
  OrganizationBooking = 'organizationBooking',
152
162
  OrganizationClients = 'organizationClients',
153
163
  OrganizationDepartments = 'organizationDepartments',
164
+ OrganizationLogo = 'organizationLogo',
154
165
  OrganizationMembers = 'organizationMembers',
155
166
  OrganizationOptionLabels = 'organizationOptionLabels',
156
167
  OrganizationOrders = 'organizationOrders',
168
+ OrganizationPages = 'organizationPages',
157
169
  OrganizationProducts = 'organizationProducts',
158
170
  OrganizationProductsExtended = 'organizationProductsExtended',
171
+ OrganizationRecommendations = 'organizationRecommendations',
159
172
  OrganizationReport = 'organizationReport',
160
173
  OrganizationStats = 'organizationStats',
161
- OrganizationLogo = 'organizationLogo',
174
+ OrganizationUnitTemplates = 'organizationUnitTemplates',
175
+ OrganizationUpsellTemplates = 'organizationUpsellTemplates',
162
176
  OrganizationWebhooks = 'organizationWebhooks',
163
177
  Project = 'project',
164
178
  ProjectAlgorithms = 'projectAlgorithms',
@@ -0,0 +1,27 @@
1
+ export declare enum AptlyAlgorithmPipelineOperation {
2
+ Base = "base",
3
+ Add = "add",
4
+ Subtract = "subtract",
5
+ Multiply = "multiply"
6
+ }
7
+ export declare enum AptlyAlgorithmPipelineApplyTo {
8
+ Base = "base",
9
+ Root = "root",
10
+ PreviousStep = "previousStep"
11
+ }
12
+ export declare type AptlyAlgorithm = AptlyAlgorithmSchema<string>;
13
+ export interface AptlyAlgorithmSchema<ID> {
14
+ _id: ID;
15
+ name: string;
16
+ pipeline: AptlyAlgorithmPipelineSchema<ID>[];
17
+ organization?: ID;
18
+ project?: ID;
19
+ }
20
+ export declare type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
21
+ export interface AptlyAlgorithmPipelineSchema<ID> {
22
+ _id: ID;
23
+ label: string;
24
+ operation: AptlyAlgorithmPipelineOperation;
25
+ value: number;
26
+ applyTo: AptlyAlgorithmPipelineApplyTo;
27
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AptlyAlgorithmPipelineApplyTo = exports.AptlyAlgorithmPipelineOperation = void 0;
4
+ var AptlyAlgorithmPipelineOperation;
5
+ (function (AptlyAlgorithmPipelineOperation) {
6
+ AptlyAlgorithmPipelineOperation["Base"] = "base";
7
+ AptlyAlgorithmPipelineOperation["Add"] = "add";
8
+ AptlyAlgorithmPipelineOperation["Subtract"] = "subtract";
9
+ AptlyAlgorithmPipelineOperation["Multiply"] = "multiply";
10
+ })(AptlyAlgorithmPipelineOperation = exports.AptlyAlgorithmPipelineOperation || (exports.AptlyAlgorithmPipelineOperation = {}));
11
+ var AptlyAlgorithmPipelineApplyTo;
12
+ (function (AptlyAlgorithmPipelineApplyTo) {
13
+ AptlyAlgorithmPipelineApplyTo["Base"] = "base";
14
+ AptlyAlgorithmPipelineApplyTo["Root"] = "root";
15
+ AptlyAlgorithmPipelineApplyTo["PreviousStep"] = "previousStep";
16
+ })(AptlyAlgorithmPipelineApplyTo = exports.AptlyAlgorithmPipelineApplyTo || (exports.AptlyAlgorithmPipelineApplyTo = {}));
17
+ //# sourceMappingURL=algorithm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algorithm.js","sourceRoot":"","sources":["algorithm.ts"],"names":[],"mappings":";;;AACA,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACzC,gDAAa,CAAA;IACb,8CAAW,CAAA;IACX,wDAAqB,CAAA;IACrB,wDAAqB,CAAA;AACvB,CAAC,EALW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAK1C;AAED,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,8CAAa,CAAA;IACb,8CAAa,CAAA;IACb,8DAA6B,CAAA;AAC/B,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC"}
@@ -0,0 +1,31 @@
1
+
2
+ export enum AptlyAlgorithmPipelineOperation {
3
+ Base = 'base',
4
+ Add = 'add',
5
+ Subtract = 'subtract',
6
+ Multiply = 'multiply',
7
+ }
8
+
9
+ export enum AptlyAlgorithmPipelineApplyTo {
10
+ Base = 'base',
11
+ Root = 'root',
12
+ PreviousStep = 'previousStep',
13
+ }
14
+
15
+ export type AptlyAlgorithm = AptlyAlgorithmSchema<string>;
16
+ export interface AptlyAlgorithmSchema<ID> {
17
+ _id: ID;
18
+ name: string;
19
+ pipeline: AptlyAlgorithmPipelineSchema<ID>[];
20
+ organization?: ID;
21
+ project?: ID;
22
+ }
23
+
24
+ export type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
25
+ export interface AptlyAlgorithmPipelineSchema<ID> {
26
+ _id: ID;
27
+ label: string;
28
+ operation: AptlyAlgorithmPipelineOperation;
29
+ value: number;
30
+ applyTo: AptlyAlgorithmPipelineApplyTo;
31
+ }
package/models/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './algorithm';
1
2
  export * from './app';
2
3
  export * from './booking';
3
4
  export * from './client';
package/models/index.js CHANGED
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./algorithm"), exports);
13
14
  __exportStar(require("./app"), exports);
14
15
  __exportStar(require("./booking"), exports);
15
16
  __exportStar(require("./client"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAsB;AACtB,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,0CAAwB;AACxB,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB;AACxB,iDAA+B;AAC/B,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,6CAA2B;AAC3B,wCAAsB;AACtB,yCAAuB;AACvB,kDAAgC;AAChC,+CAA6B;AAC7B,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,8CAA4B;AAC5B,wCAAsB;AACtB,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,0CAAwB;AACxB,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB;AACxB,iDAA+B;AAC/B,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,6CAA2B;AAC3B,wCAAsB;AACtB,yCAAuB;AACvB,kDAAgC;AAChC,+CAA6B;AAC7B,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,kDAAgC"}
package/models/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+ export * from './algorithm';
2
3
  export * from './app';
3
4
  export * from './booking';
4
5
  export * from './client';
@@ -5,6 +5,7 @@ import { AptlyBaseSchema } from './extends';
5
5
  import { AptlyDepartmentGeneric } from './department';
6
6
  import { AptlyProducerSchema } from './producer';
7
7
  import { AptlyAppSchema } from './app';
8
+ import { AptlyAlgorithmSchema } from './algorithm';
8
9
  export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>;
9
10
  export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
10
11
  slug: string;
@@ -24,6 +25,7 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
24
25
  };
25
26
  phone: string;
26
27
  email: string;
28
+ algorithms: AptlyAlgorithmSchema<ID>[];
27
29
  members: AptlyOrganizationMemberSchema<ID, DATE>[];
28
30
  modules: AptlyPermissionModulesModels[];
29
31
  contractSign?: AptlySignageSchema<ID, DATE>;
@@ -10,6 +10,7 @@ import { AptlyBaseSchema } from './extends';
10
10
  import { AptlyDepartmentGeneric } from './department';
11
11
  import { AptlyProducerSchema } from './producer';
12
12
  import { AptlyAppSchema } from './app';
13
+ import { AptlyAlgorithmSchema } from './algorithm';
13
14
 
14
15
  export type AptlyOrganization = AptlyOrganizationSchema<string, string>;
15
16
 
@@ -31,6 +32,7 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
31
32
  };
32
33
  phone: string;
33
34
  email: string;
35
+ algorithms: AptlyAlgorithmSchema<ID>[];
34
36
  members: AptlyOrganizationMemberSchema<ID, DATE>[];
35
37
  modules: AptlyPermissionModulesModels[];
36
38
  contractSign?: AptlySignageSchema<ID, DATE>;
@@ -36,13 +36,27 @@ export interface AptlyProjectPeriodSchema<ID, DATE> {
36
36
  close: DATE;
37
37
  override?: boolean;
38
38
  }
39
+ /**
40
+ * @deprecated use AptlyAlgorithm instead
41
+ */
39
42
  export declare type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>;
43
+ /**
44
+ * @deprecated use AptlyAlgorithm instead
45
+ */
40
46
  export interface AptlyProjectAlgorithmSchema<ID> {
41
47
  _id: ID;
42
48
  name: string;
43
49
  pipeline: AptlyProjectAlgorithmPipelineSchema<ID>[];
50
+ organization?: ID;
51
+ project?: ID;
44
52
  }
53
+ /**
54
+ * @deprecated use AptlyAlgorithmPipeline instead
55
+ */
45
56
  export declare type AptlyProjectAlgorithmPipeline = AptlyProjectAlgorithmPipelineSchema<string>;
57
+ /**
58
+ * @deprecated use AptlyAlgorithmPipeline instead
59
+ */
46
60
  export interface AptlyProjectAlgorithmPipelineSchema<ID> {
47
61
  _id: ID;
48
62
  label: string;
package/models/project.ts CHANGED
@@ -40,14 +40,29 @@ export interface AptlyProjectPeriodSchema<ID, DATE> {
40
40
  override?: boolean;
41
41
  }
42
42
 
43
+ /**
44
+ * @deprecated use AptlyAlgorithm instead
45
+ */
43
46
  export type AptlyProjectAlgorithm = AptlyProjectAlgorithmSchema<string>;
47
+
48
+ /**
49
+ * @deprecated use AptlyAlgorithm instead
50
+ */
44
51
  export interface AptlyProjectAlgorithmSchema<ID> {
45
52
  _id: ID;
46
53
  name: string;
47
54
  pipeline: AptlyProjectAlgorithmPipelineSchema<ID>[];
55
+ organization?: ID;
56
+ project?: ID;
48
57
  }
49
58
 
59
+ /**
60
+ * @deprecated use AptlyAlgorithmPipeline instead
61
+ */
50
62
  export type AptlyProjectAlgorithmPipeline = AptlyProjectAlgorithmPipelineSchema<string>;
63
+ /**
64
+ * @deprecated use AptlyAlgorithmPipeline instead
65
+ */
51
66
  export interface AptlyProjectAlgorithmPipelineSchema<ID> {
52
67
  _id: ID;
53
68
  label: string;
@@ -14,7 +14,8 @@ export declare type AptlyUnitTemplate = AptlyUnitTemplateSchema<string, string>;
14
14
  export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
15
15
  name: string;
16
16
  description?: string;
17
- project: ID;
17
+ organization?: ID;
18
+ project?: ID;
18
19
  archived: boolean;
19
20
  /**
20
21
  * @deprecated not used
@@ -53,6 +54,7 @@ export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
53
54
  multiSelect: boolean;
54
55
  displayType: AptlyCategorySectionDisplayType;
55
56
  packages: AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE>[];
57
+ assortments?: AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE>[];
56
58
  _order_products: ID[];
57
59
  products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
58
60
  period: AptlyProjectPeriodSchema<ID, DATE> | ID;
@@ -68,6 +70,12 @@ export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
68
70
  _product_order?: ID[];
69
71
  products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
70
72
  }
73
+ export declare type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
74
+ export interface AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE> {
75
+ _id: ID;
76
+ createdAt: DATE;
77
+ color: string;
78
+ }
71
79
  export declare type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
72
80
  export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
73
81
  _id: ID;
@@ -87,6 +95,7 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
87
95
  standard: boolean;
88
96
  standardVariant?: ID;
89
97
  partOfPackage?: ID;
98
+ partOfAssortment?: ID;
90
99
  supplier?: ID | null;
91
100
  customTitle?: string;
92
101
  customDescription?: string;
@@ -19,7 +19,8 @@ export type AptlyUnitTemplate = AptlyUnitTemplateSchema<string, string>;
19
19
  export interface AptlyUnitTemplateSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
20
20
  name: string;
21
21
  description?: string;
22
- project: ID;
22
+ organization?: ID;
23
+ project?: ID;
23
24
  archived: boolean;
24
25
 
25
26
  /**
@@ -63,6 +64,7 @@ export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
63
64
  multiSelect: boolean;
64
65
  displayType: AptlyCategorySectionDisplayType;
65
66
  packages: AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE>[];
67
+ assortments?: AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE>[];
66
68
  _order_products: ID[];
67
69
  products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
68
70
  period: AptlyProjectPeriodSchema<ID, DATE> | ID;
@@ -80,6 +82,13 @@ export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
80
82
  products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
81
83
  }
82
84
 
85
+ export type AptlyUnitTemplateCategorySectionAssortment = AptlyUnitTemplateCategorySectionAssortmentSchema<string, string>;
86
+ export interface AptlyUnitTemplateCategorySectionAssortmentSchema<ID, DATE> {
87
+ _id: ID;
88
+ createdAt: DATE;
89
+ color: string;
90
+ }
91
+
83
92
  export type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
84
93
  export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
85
94
  _id: ID;
@@ -99,6 +108,7 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
99
108
  standard: boolean;
100
109
  standardVariant?: ID;
101
110
  partOfPackage?: ID;
111
+ partOfAssortment?: ID;
102
112
  supplier?: ID | null;
103
113
  customTitle?: string;
104
114
  customDescription?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "1.6.3",
3
+ "version": "1.7.1",
4
4
  "description": "Aptly types and enums",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",