@aptly-as/types 1.6.2 → 1.7.0
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.
- package/core/permission.d.ts +9 -3
- package/core/permission.js +7 -1
- package/core/permission.js.map +1 -1
- package/core/permission.ts +14 -2
- package/models/algorithm.d.ts +27 -0
- package/models/algorithm.js +17 -0
- package/models/algorithm.js.map +1 -0
- package/models/algorithm.ts +31 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/index.js.map +1 -1
- package/models/index.ts +1 -0
- package/models/organization.d.ts +2 -0
- package/models/organization.ts +2 -0
- package/models/product.d.ts +1 -1
- package/models/product.ts +1 -1
- package/models/project.d.ts +14 -0
- package/models/project.ts +15 -0
- package/models/unit-template.d.ts +10 -1
- package/models/unit-template.ts +11 -1
- package/package.json +1 -1
package/core/permission.d.ts
CHANGED
|
@@ -35,10 +35,11 @@ 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' | '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",
|
|
43
44
|
TestingAdmin = "testingAdmin",
|
|
44
45
|
Reports = "reports",
|
|
@@ -48,7 +49,7 @@ export declare enum AptlyPermissionOrganizationModel {
|
|
|
48
49
|
/**
|
|
49
50
|
* @deprecated use AptlyPermissionModel enum
|
|
50
51
|
*/
|
|
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' | '
|
|
52
|
+
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
53
|
export declare enum AptlyPermissionModel {
|
|
53
54
|
Admin = "admin",
|
|
54
55
|
AdminBilling = "adminBilling",
|
|
@@ -63,17 +64,22 @@ export declare enum AptlyPermissionModel {
|
|
|
63
64
|
AdminOrganizations = "adminOrganizations",
|
|
64
65
|
Beta = "beta",
|
|
65
66
|
Organization = "organization",
|
|
67
|
+
OrganizationAlgorithms = "organizationAlgorithms",
|
|
66
68
|
OrganizationBooking = "organizationBooking",
|
|
67
69
|
OrganizationClients = "organizationClients",
|
|
68
70
|
OrganizationDepartments = "organizationDepartments",
|
|
71
|
+
OrganizationLogo = "organizationLogo",
|
|
69
72
|
OrganizationMembers = "organizationMembers",
|
|
70
73
|
OrganizationOptionLabels = "organizationOptionLabels",
|
|
71
74
|
OrganizationOrders = "organizationOrders",
|
|
75
|
+
OrganizationPages = "organizationPages",
|
|
72
76
|
OrganizationProducts = "organizationProducts",
|
|
73
77
|
OrganizationProductsExtended = "organizationProductsExtended",
|
|
78
|
+
OrganizationRecommendations = "organizationRecommendations",
|
|
74
79
|
OrganizationReport = "organizationReport",
|
|
75
80
|
OrganizationStats = "organizationStats",
|
|
76
|
-
|
|
81
|
+
OrganizationUnitTemplates = "organizationUnitTemplates",
|
|
82
|
+
OrganizationUpsellTemplates = "organizationUpsellTemplates",
|
|
77
83
|
OrganizationWebhooks = "organizationWebhooks",
|
|
78
84
|
Project = "project",
|
|
79
85
|
ProjectAlgorithms = "projectAlgorithms",
|
package/core/permission.js
CHANGED
|
@@ -29,6 +29,7 @@ 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";
|
|
33
34
|
AptlyPermissionOrganizationModel["TestingAdmin"] = "testingAdmin";
|
|
34
35
|
AptlyPermissionOrganizationModel["Reports"] = "reports";
|
|
@@ -50,17 +51,22 @@ var AptlyPermissionModel;
|
|
|
50
51
|
AptlyPermissionModel["AdminOrganizations"] = "adminOrganizations";
|
|
51
52
|
AptlyPermissionModel["Beta"] = "beta";
|
|
52
53
|
AptlyPermissionModel["Organization"] = "organization";
|
|
54
|
+
AptlyPermissionModel["OrganizationAlgorithms"] = "organizationAlgorithms";
|
|
53
55
|
AptlyPermissionModel["OrganizationBooking"] = "organizationBooking";
|
|
54
56
|
AptlyPermissionModel["OrganizationClients"] = "organizationClients";
|
|
55
57
|
AptlyPermissionModel["OrganizationDepartments"] = "organizationDepartments";
|
|
58
|
+
AptlyPermissionModel["OrganizationLogo"] = "organizationLogo";
|
|
56
59
|
AptlyPermissionModel["OrganizationMembers"] = "organizationMembers";
|
|
57
60
|
AptlyPermissionModel["OrganizationOptionLabels"] = "organizationOptionLabels";
|
|
58
61
|
AptlyPermissionModel["OrganizationOrders"] = "organizationOrders";
|
|
62
|
+
AptlyPermissionModel["OrganizationPages"] = "organizationPages";
|
|
59
63
|
AptlyPermissionModel["OrganizationProducts"] = "organizationProducts";
|
|
60
64
|
AptlyPermissionModel["OrganizationProductsExtended"] = "organizationProductsExtended";
|
|
65
|
+
AptlyPermissionModel["OrganizationRecommendations"] = "organizationRecommendations";
|
|
61
66
|
AptlyPermissionModel["OrganizationReport"] = "organizationReport";
|
|
62
67
|
AptlyPermissionModel["OrganizationStats"] = "organizationStats";
|
|
63
|
-
AptlyPermissionModel["
|
|
68
|
+
AptlyPermissionModel["OrganizationUnitTemplates"] = "organizationUnitTemplates";
|
|
69
|
+
AptlyPermissionModel["OrganizationUpsellTemplates"] = "organizationUpsellTemplates";
|
|
64
70
|
AptlyPermissionModel["OrganizationWebhooks"] = "organizationWebhooks";
|
|
65
71
|
AptlyPermissionModel["Project"] = "project";
|
|
66
72
|
AptlyPermissionModel["ProjectAlgorithms"] = "projectAlgorithms";
|
package/core/permission.js.map
CHANGED
|
@@ -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,CA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,iFAAyD,CAAA;IACzD,yEAAiD,CAAA;IACjD,qCAAa,CAAA;IACb,mDAA2B,CAAA;IAC3B,mDAA2B,CAAA;IAC3B,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,iDAAyB,CAAA;AAC3B,CAAC,EA7DW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA6D/B"}
|
package/core/permission.ts
CHANGED
|
@@ -59,6 +59,7 @@ export type AptlyPermissionOrganizationModels =
|
|
|
59
59
|
| 'testingAdmin'
|
|
60
60
|
| 'admin'
|
|
61
61
|
| 'content'
|
|
62
|
+
| 'organizationContent'
|
|
62
63
|
| 'reports'
|
|
63
64
|
| 'support'
|
|
64
65
|
| 'thirdParty'
|
|
@@ -67,6 +68,7 @@ export type AptlyPermissionOrganizationModels =
|
|
|
67
68
|
export enum AptlyPermissionOrganizationModel {
|
|
68
69
|
Admin = 'admin',
|
|
69
70
|
Content = 'content',
|
|
71
|
+
OrganizationContent = 'organizationContent',
|
|
70
72
|
Default = 'default',
|
|
71
73
|
TestingAdmin = 'testingAdmin',
|
|
72
74
|
Reports = 'reports',
|
|
@@ -91,17 +93,22 @@ export type AptlyPermissionModels =
|
|
|
91
93
|
| 'adminOrganizations'
|
|
92
94
|
| 'beta'
|
|
93
95
|
| 'organization'
|
|
96
|
+
| 'organizationAlgorithms'
|
|
94
97
|
| 'organizationBooking'
|
|
95
98
|
| 'organizationClients'
|
|
96
99
|
| 'organizationDepartments'
|
|
100
|
+
| 'organizationLogo'
|
|
97
101
|
| 'organizationMembers'
|
|
98
102
|
| 'organizationOptionLabels'
|
|
99
103
|
| 'organizationOrders'
|
|
104
|
+
| 'organizationPages'
|
|
100
105
|
| 'organizationProducts'
|
|
101
106
|
| 'organizationProductsExtended'
|
|
107
|
+
| 'organizationRecommendations'
|
|
102
108
|
| 'organizationReport'
|
|
103
109
|
| 'organizationStats'
|
|
104
|
-
| '
|
|
110
|
+
| 'organizationUnitTemplates'
|
|
111
|
+
| 'organizationUpsellTemplates'
|
|
105
112
|
| 'organizationWebhooks'
|
|
106
113
|
| 'project'
|
|
107
114
|
| 'projectAlgorithms'
|
|
@@ -148,17 +155,22 @@ export enum AptlyPermissionModel {
|
|
|
148
155
|
AdminOrganizations = 'adminOrganizations',
|
|
149
156
|
Beta = 'beta',
|
|
150
157
|
Organization = 'organization',
|
|
158
|
+
OrganizationAlgorithms = 'organizationAlgorithms',
|
|
151
159
|
OrganizationBooking = 'organizationBooking',
|
|
152
160
|
OrganizationClients = 'organizationClients',
|
|
153
161
|
OrganizationDepartments = 'organizationDepartments',
|
|
162
|
+
OrganizationLogo = 'organizationLogo',
|
|
154
163
|
OrganizationMembers = 'organizationMembers',
|
|
155
164
|
OrganizationOptionLabels = 'organizationOptionLabels',
|
|
156
165
|
OrganizationOrders = 'organizationOrders',
|
|
166
|
+
OrganizationPages = 'organizationPages',
|
|
157
167
|
OrganizationProducts = 'organizationProducts',
|
|
158
168
|
OrganizationProductsExtended = 'organizationProductsExtended',
|
|
169
|
+
OrganizationRecommendations = 'organizationRecommendations',
|
|
159
170
|
OrganizationReport = 'organizationReport',
|
|
160
171
|
OrganizationStats = 'organizationStats',
|
|
161
|
-
|
|
172
|
+
OrganizationUnitTemplates = 'organizationUnitTemplates',
|
|
173
|
+
OrganizationUpsellTemplates = 'organizationUpsellTemplates',
|
|
162
174
|
OrganizationWebhooks = 'organizationWebhooks',
|
|
163
175
|
Project = 'project',
|
|
164
176
|
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
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);
|
package/models/index.js.map
CHANGED
|
@@ -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
package/models/organization.d.ts
CHANGED
|
@@ -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>;
|
package/models/organization.ts
CHANGED
|
@@ -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>;
|
package/models/product.d.ts
CHANGED
package/models/product.ts
CHANGED
package/models/project.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/models/unit-template.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|