@aptly-as/types 1.6.3 → 1.6.4

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.
@@ -48,7 +48,7 @@ export declare enum AptlyPermissionOrganizationModel {
48
48
  /**
49
49
  * @deprecated use AptlyPermissionModel enum
50
50
  */
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';
51
+ 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
52
  export declare enum AptlyPermissionModel {
53
53
  Admin = "admin",
54
54
  AdminBilling = "adminBilling",
@@ -63,17 +63,22 @@ export declare enum AptlyPermissionModel {
63
63
  AdminOrganizations = "adminOrganizations",
64
64
  Beta = "beta",
65
65
  Organization = "organization",
66
+ OrganizationAlgorithms = "organizationAlgorithms",
66
67
  OrganizationBooking = "organizationBooking",
67
68
  OrganizationClients = "organizationClients",
68
69
  OrganizationDepartments = "organizationDepartments",
70
+ OrganizationLogo = "organizationLogo",
69
71
  OrganizationMembers = "organizationMembers",
70
72
  OrganizationOptionLabels = "organizationOptionLabels",
71
73
  OrganizationOrders = "organizationOrders",
74
+ OrganizationPages = "organizationPages",
72
75
  OrganizationProducts = "organizationProducts",
73
76
  OrganizationProductsExtended = "organizationProductsExtended",
77
+ OrganizationRecommendations = "organizationRecommendations",
74
78
  OrganizationReport = "organizationReport",
75
79
  OrganizationStats = "organizationStats",
76
- OrganizationLogo = "organizationLogo",
80
+ OrganizationUnitTemplates = "organizationUnitTemplates",
81
+ OrganizationUpsellTemplates = "organizationUpsellTemplates",
77
82
  OrganizationWebhooks = "organizationWebhooks",
78
83
  Project = "project",
79
84
  ProjectAlgorithms = "projectAlgorithms",
@@ -50,17 +50,22 @@ var AptlyPermissionModel;
50
50
  AptlyPermissionModel["AdminOrganizations"] = "adminOrganizations";
51
51
  AptlyPermissionModel["Beta"] = "beta";
52
52
  AptlyPermissionModel["Organization"] = "organization";
53
+ AptlyPermissionModel["OrganizationAlgorithms"] = "organizationAlgorithms";
53
54
  AptlyPermissionModel["OrganizationBooking"] = "organizationBooking";
54
55
  AptlyPermissionModel["OrganizationClients"] = "organizationClients";
55
56
  AptlyPermissionModel["OrganizationDepartments"] = "organizationDepartments";
57
+ AptlyPermissionModel["OrganizationLogo"] = "organizationLogo";
56
58
  AptlyPermissionModel["OrganizationMembers"] = "organizationMembers";
57
59
  AptlyPermissionModel["OrganizationOptionLabels"] = "organizationOptionLabels";
58
60
  AptlyPermissionModel["OrganizationOrders"] = "organizationOrders";
61
+ AptlyPermissionModel["OrganizationPages"] = "organizationPages";
59
62
  AptlyPermissionModel["OrganizationProducts"] = "organizationProducts";
60
63
  AptlyPermissionModel["OrganizationProductsExtended"] = "organizationProductsExtended";
64
+ AptlyPermissionModel["OrganizationRecommendations"] = "organizationRecommendations";
61
65
  AptlyPermissionModel["OrganizationReport"] = "organizationReport";
62
66
  AptlyPermissionModel["OrganizationStats"] = "organizationStats";
63
- AptlyPermissionModel["OrganizationLogo"] = "organizationLogo";
67
+ AptlyPermissionModel["OrganizationUnitTemplates"] = "organizationUnitTemplates";
68
+ AptlyPermissionModel["OrganizationUpsellTemplates"] = "organizationUpsellTemplates";
64
69
  AptlyPermissionModel["OrganizationWebhooks"] = "organizationWebhooks";
65
70
  AptlyPermissionModel["Project"] = "project";
66
71
  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;AA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DAA6B,CAAA;IAC7B,yDAAiC,CAAA;IACjC,qEAA6C,CAAA;IAC7C,qDAA6B,CAAA;IAC7B,iEAAyC,CAAA;IACzC,yEAAiD,CAAA;IACjD,2EAAmD,CAAA;IACnD,qEAA6C,CAAA;IAC7C,yFAAiE,CAAA;IACjE,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"}
@@ -91,17 +91,22 @@ export type AptlyPermissionModels =
91
91
  | 'adminOrganizations'
92
92
  | 'beta'
93
93
  | 'organization'
94
+ | 'organizationAlgorithms'
94
95
  | 'organizationBooking'
95
96
  | 'organizationClients'
96
97
  | 'organizationDepartments'
98
+ | 'organizationLogo'
97
99
  | 'organizationMembers'
98
100
  | 'organizationOptionLabels'
99
101
  | 'organizationOrders'
102
+ | 'organizationPages'
100
103
  | 'organizationProducts'
101
104
  | 'organizationProductsExtended'
105
+ | 'organizationRecommendations'
102
106
  | 'organizationReport'
103
107
  | 'organizationStats'
104
- | 'organizationLogo'
108
+ | 'organizationUnitTemplates'
109
+ | 'organizationUpsellTemplates'
105
110
  | 'organizationWebhooks'
106
111
  | 'project'
107
112
  | 'projectAlgorithms'
@@ -148,17 +153,22 @@ export enum AptlyPermissionModel {
148
153
  AdminOrganizations = 'adminOrganizations',
149
154
  Beta = 'beta',
150
155
  Organization = 'organization',
156
+ OrganizationAlgorithms = 'organizationAlgorithms',
151
157
  OrganizationBooking = 'organizationBooking',
152
158
  OrganizationClients = 'organizationClients',
153
159
  OrganizationDepartments = 'organizationDepartments',
160
+ OrganizationLogo = 'organizationLogo',
154
161
  OrganizationMembers = 'organizationMembers',
155
162
  OrganizationOptionLabels = 'organizationOptionLabels',
156
163
  OrganizationOrders = 'organizationOrders',
164
+ OrganizationPages = 'organizationPages',
157
165
  OrganizationProducts = 'organizationProducts',
158
166
  OrganizationProductsExtended = 'organizationProductsExtended',
167
+ OrganizationRecommendations = 'organizationRecommendations',
159
168
  OrganizationReport = 'organizationReport',
160
169
  OrganizationStats = 'organizationStats',
161
- OrganizationLogo = 'organizationLogo',
170
+ OrganizationUnitTemplates = 'organizationUnitTemplates',
171
+ OrganizationUpsellTemplates = 'organizationUpsellTemplates',
162
172
  OrganizationWebhooks = 'organizationWebhooks',
163
173
  Project = 'project',
164
174
  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
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "Aptly types and enums",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",