@aptly-as/types 1.6.1 → 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.
package/core/app.d.ts CHANGED
@@ -1,5 +1,13 @@
1
1
  import { AptlyScope } from './scope';
2
2
  import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models';
3
+ export declare enum AptlyAppSandbox {
4
+ AllowForms = "allow-forms",
5
+ AllowPopups = "allow-popups",
6
+ AllowScripts = "allow-scripts",
7
+ AllowSameOrigin = "allow-same-origin",
8
+ AllowPointerLock = "allow-pointer-lock",
9
+ AllowTopNavigation = "allow-top-navigation"
10
+ }
3
11
  export interface AptlyAppJWT {
4
12
  exp: number;
5
13
  }
package/core/app.js CHANGED
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AptlyAppSandbox = void 0;
4
+ var AptlyAppSandbox;
5
+ (function (AptlyAppSandbox) {
6
+ AptlyAppSandbox["AllowForms"] = "allow-forms";
7
+ AptlyAppSandbox["AllowPopups"] = "allow-popups";
8
+ AptlyAppSandbox["AllowScripts"] = "allow-scripts";
9
+ AptlyAppSandbox["AllowSameOrigin"] = "allow-same-origin";
10
+ AptlyAppSandbox["AllowPointerLock"] = "allow-pointer-lock";
11
+ AptlyAppSandbox["AllowTopNavigation"] = "allow-top-navigation";
12
+ })(AptlyAppSandbox = exports.AptlyAppSandbox || (exports.AptlyAppSandbox = {}));
3
13
  //# sourceMappingURL=app.js.map
package/core/app.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":";;;AAGA,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,6CAA0B,CAAA;IAC1B,+CAA4B,CAAA;IAC5B,iDAA8B,CAAA;IAC9B,wDAAqC,CAAA;IACrC,0DAAuC,CAAA;IACvC,8DAA2C,CAAA;AAC7C,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B"}
package/core/app.ts CHANGED
@@ -1,6 +1,15 @@
1
1
  import { AptlyScope } from './scope';
2
2
  import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models';
3
3
 
4
+ export enum AptlyAppSandbox {
5
+ AllowForms = 'allow-forms',
6
+ AllowPopups = 'allow-popups',
7
+ AllowScripts = 'allow-scripts',
8
+ AllowSameOrigin = 'allow-same-origin',
9
+ AllowPointerLock = 'allow-pointer-lock',
10
+ AllowTopNavigation = 'allow-top-navigation',
11
+ }
12
+
4
13
  export interface AptlyAppJWT {
5
14
  exp: number;
6
15
  }
@@ -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;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,mCAA2B,KAA3B,mCAA2B,QAetC;AAcD,IAAY,gCAQX;AARD,WAAY,gCAAgC;IAC1C,mDAAe,CAAA;IACf,uDAAmB,CAAA;IACnB,uDAAmB,CAAA;IACnB,iEAA6B,CAAA;IAC7B,uDAAmB,CAAA;IACnB,uDAAmB,CAAA;IACnB,6DAAyB,CAAA;AAC3B,CAAC,EARW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAQ3C;AA8DD,IAAY,oBAwDX;AAxDD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,qDAA6B,CAAA;IAC7B,yDAAiC,CAAA;IACjC,uDAA+B,CAAA;IAC/B,mDAA2B,CAAA;IAC3B,iDAAyB,CAAA;IACzB,yDAAiC,CAAA;IACjC,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,iDAAyB,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AyC,CAAA;IACzC,+DAAuC,CAAA;IACvC,+EAAuD,CAAA;IACvD,mFAA2D,CAAA;IAC3D,qEAA6C,CAAA;IAC7C,2CAAmB,CAAA;IACnB,+DAAuC,CAAA;IACvC,yDAAiC,CAAA;IACjC,6DAAqC,CAAA;IACrC,yDAAiC,CAAA;IACjC,uDAA+B,CAAA;IAC/B,qDAA6B,CAAA;IAC7B,yDAAiC,CAAA;IACjC,2DAAmC,CAAA;IACnC,yEAAiD,CAAA;IACjD,uDAA+B,CAAA;IAC/B,iEAAyC,CAAA;IACzC,qDAA6B,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',
@@ -1,13 +1,13 @@
1
1
  export declare enum AptlyWebhookType {
2
- ProjectCreated = "as.aptly.project.created",
3
- ProjectUpdated = "as.aptly.project.updated",
4
- UnitCreated = "as.aptly.unit.created",
5
- UnitUpdated = "as.aptly.unit.updated",
6
- UnitMessageNew = "as.aptly.unit.message.new",
7
- UnitMessageReply = "as.aptly.unit.message.reply",
8
- UnitOrderSigned = "as.aptly.unit.order.signed",
9
- OrganizationAppUpdated = "as.aptly.organization.app.updated",
10
- OrganizationAppDeleted = "as.aptly.organization.app.deleted"
2
+ ProjectCreated = "aptly.project.created",
3
+ ProjectUpdated = "aptly.project.updated",
4
+ UnitCreated = "aptly.unit.created",
5
+ UnitUpdated = "aptly.unit.updated",
6
+ UnitMessageNew = "aptly.unit.message.new",
7
+ UnitMessageReply = "aptly.unit.message.reply",
8
+ UnitOrderSigned = "aptly.unit.order.signed",
9
+ OrganizationAppUpdated = "aptly.organization.app.updated",
10
+ OrganizationAppDeleted = "aptly.organization.app.deleted"
11
11
  }
12
12
  export declare enum AptlyWebhookStatus {
13
13
  Active = "active",
package/enums/webhook.js CHANGED
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AptlyWebhookEventStatus = exports.AptlyWebhookStatus = exports.AptlyWebhookType = void 0;
4
4
  var AptlyWebhookType;
5
5
  (function (AptlyWebhookType) {
6
- AptlyWebhookType["ProjectCreated"] = "as.aptly.project.created";
7
- AptlyWebhookType["ProjectUpdated"] = "as.aptly.project.updated";
8
- AptlyWebhookType["UnitCreated"] = "as.aptly.unit.created";
9
- AptlyWebhookType["UnitUpdated"] = "as.aptly.unit.updated";
10
- AptlyWebhookType["UnitMessageNew"] = "as.aptly.unit.message.new";
11
- AptlyWebhookType["UnitMessageReply"] = "as.aptly.unit.message.reply";
12
- AptlyWebhookType["UnitOrderSigned"] = "as.aptly.unit.order.signed";
13
- AptlyWebhookType["OrganizationAppUpdated"] = "as.aptly.organization.app.updated";
14
- AptlyWebhookType["OrganizationAppDeleted"] = "as.aptly.organization.app.deleted";
6
+ AptlyWebhookType["ProjectCreated"] = "aptly.project.created";
7
+ AptlyWebhookType["ProjectUpdated"] = "aptly.project.updated";
8
+ AptlyWebhookType["UnitCreated"] = "aptly.unit.created";
9
+ AptlyWebhookType["UnitUpdated"] = "aptly.unit.updated";
10
+ AptlyWebhookType["UnitMessageNew"] = "aptly.unit.message.new";
11
+ AptlyWebhookType["UnitMessageReply"] = "aptly.unit.message.reply";
12
+ AptlyWebhookType["UnitOrderSigned"] = "aptly.unit.order.signed";
13
+ AptlyWebhookType["OrganizationAppUpdated"] = "aptly.organization.app.updated";
14
+ AptlyWebhookType["OrganizationAppDeleted"] = "aptly.organization.app.deleted";
15
15
  })(AptlyWebhookType = exports.AptlyWebhookType || (exports.AptlyWebhookType = {}));
16
16
  var AptlyWebhookStatus;
17
17
  (function (AptlyWebhookStatus) {
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.js","sourceRoot":"","sources":["webhook.ts"],"names":[],"mappings":";;;AACA,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,+DAA2C,CAAA;IAC3C,+DAA2C,CAAA;IAC3C,yDAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,gEAA4C,CAAA;IAC5C,oEAAgD,CAAA;IAChD,kEAA8C,CAAA;IAC9C,gFAA4D,CAAA;IAC5D,gFAA4D,CAAA;AAC9D,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;AACnB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,sCAAW,CAAA;IACX,kDAAuB,CAAA;IACvB,0CAAe,CAAA;IACf,4CAAiB,CAAA;AACnB,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC"}
1
+ {"version":3,"file":"webhook.js","sourceRoot":"","sources":["webhook.ts"],"names":[],"mappings":";;;AACA,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,4DAAwC,CAAA;IACxC,4DAAwC,CAAA;IACxC,sDAAkC,CAAA;IAClC,sDAAkC,CAAA;IAClC,6DAAyC,CAAA;IACzC,iEAA6C,CAAA;IAC7C,+DAA2C,CAAA;IAC3C,6EAAyD,CAAA;IACzD,6EAAyD,CAAA;AAC3D,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;AACnB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,sCAAW,CAAA;IACX,kDAAuB,CAAA;IACvB,0CAAe,CAAA;IACf,4CAAiB,CAAA;AACnB,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC"}
package/enums/webhook.ts CHANGED
@@ -1,14 +1,14 @@
1
1
 
2
2
  export enum AptlyWebhookType {
3
- ProjectCreated = 'as.aptly.project.created',
4
- ProjectUpdated = 'as.aptly.project.updated',
5
- UnitCreated = 'as.aptly.unit.created',
6
- UnitUpdated = 'as.aptly.unit.updated',
7
- UnitMessageNew = 'as.aptly.unit.message.new',
8
- UnitMessageReply = 'as.aptly.unit.message.reply',
9
- UnitOrderSigned = 'as.aptly.unit.order.signed',
10
- OrganizationAppUpdated = 'as.aptly.organization.app.updated',
11
- OrganizationAppDeleted = 'as.aptly.organization.app.deleted',
3
+ ProjectCreated = 'aptly.project.created',
4
+ ProjectUpdated = 'aptly.project.updated',
5
+ UnitCreated = 'aptly.unit.created',
6
+ UnitUpdated = 'aptly.unit.updated',
7
+ UnitMessageNew = 'aptly.unit.message.new',
8
+ UnitMessageReply = 'aptly.unit.message.reply',
9
+ UnitOrderSigned = 'aptly.unit.order.signed',
10
+ OrganizationAppUpdated = 'aptly.organization.app.updated',
11
+ OrganizationAppDeleted = 'aptly.organization.app.deleted',
12
12
  }
13
13
 
14
14
  export enum AptlyWebhookStatus {
@@ -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/app.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AptlyBaseSchema } from './extends';
2
2
  import { AptlyWebhookType } from '../enums';
3
- import { AptlyField, AptlyPermissionModel } from '../core';
3
+ import { AptlyAppSandbox, AptlyField, AptlyPermissionModel } from '../core';
4
4
  import { AptlyMediaSrcSchema } from './media';
5
5
  export declare type AptlyApp = AptlyAppSchema<string, string>;
6
6
  export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
@@ -14,7 +14,7 @@ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>
14
14
  settings: AptlyAppSettingSchema<ID>[];
15
15
  webhooks: AptlyAppWebhookSchema<ID>[];
16
16
  proxies: AptlyAppProxySchema<ID>[];
17
- injections: AptlyAppInjectionSchema<ID>[];
17
+ menus: AptlyAppMenuSchema<ID, DATE>[];
18
18
  }
19
19
  export declare type AptlyAppSetting = AptlyAppSettingSchema<string>;
20
20
  export interface AptlyAppSettingSchema<ID> extends AptlyField {
@@ -46,18 +46,18 @@ export declare enum AptlyProjectInjection {
46
46
  }
47
47
  export declare type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}` | `project-${AptlyProjectInjection}`;
48
48
  export declare enum AptlyAppInjectionType {
49
- Iframe = "iframe",
50
- Script = "script"
49
+ Iframe = "iframe"
51
50
  }
52
- export declare type AptlyAppInjection = AptlyAppInjectionSchema<string>;
53
- export interface AptlyAppInjectionSchema<ID> {
51
+ export declare type AptlyAppMenu = AptlyAppMenuSchema<string, string>;
52
+ export interface AptlyAppMenuSchema<ID, DATE> {
54
53
  _id: ID;
55
54
  type: AptlyAppInjectionType;
56
- menu: AptlyAppInjectionMenu;
55
+ menu: AptlyAppInjectionMenu[];
57
56
  model: AptlyPermissionModel;
58
57
  label: string;
59
- icon?: string;
58
+ icon?: AptlyMediaSrcSchema<ID, DATE>;
60
59
  src: string;
60
+ sandbox: AptlyAppSandbox[];
61
61
  }
62
62
  export interface AptlyAppProxySchema<ID> {
63
63
  _id: ID;
package/models/app.js CHANGED
@@ -23,6 +23,5 @@ var AptlyProjectInjection;
23
23
  var AptlyAppInjectionType;
24
24
  (function (AptlyAppInjectionType) {
25
25
  AptlyAppInjectionType["Iframe"] = "iframe";
26
- AptlyAppInjectionType["Script"] = "script";
27
26
  })(AptlyAppInjectionType = exports.AptlyAppInjectionType || (exports.AptlyAppInjectionType = {}));
28
27
  //# sourceMappingURL=app.js.map
package/models/app.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":";;;AAiCA,IAA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BAAqB,QAEhC"}
package/models/app.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AptlyBaseSchema } from './extends';
2
2
  import { AptlyWebhookType } from '../enums';
3
- import { AptlyField, AptlyPermissionModel } from '../core';
3
+ import { AptlyAppSandbox, AptlyField, AptlyPermissionModel } from '../core';
4
4
  import { AptlyMediaSrcSchema } from './media';
5
5
 
6
6
  export type AptlyApp = AptlyAppSchema<string, string>;
@@ -15,7 +15,7 @@ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>
15
15
  settings: AptlyAppSettingSchema<ID>[];
16
16
  webhooks: AptlyAppWebhookSchema<ID>[];
17
17
  proxies: AptlyAppProxySchema<ID>[];
18
- injections: AptlyAppInjectionSchema<ID>[]
18
+ menus: AptlyAppMenuSchema<ID, DATE>[]
19
19
  }
20
20
 
21
21
  export type AptlyAppSetting = AptlyAppSettingSchema<string>;
@@ -54,18 +54,18 @@ export type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}`
54
54
 
55
55
  export enum AptlyAppInjectionType {
56
56
  Iframe = 'iframe',
57
- Script = 'script',
58
57
  }
59
58
 
60
- export type AptlyAppInjection = AptlyAppInjectionSchema<string>;
61
- export interface AptlyAppInjectionSchema<ID> {
59
+ export type AptlyAppMenu = AptlyAppMenuSchema<string, string>;
60
+ export interface AptlyAppMenuSchema<ID, DATE> {
62
61
  _id: ID;
63
62
  type: AptlyAppInjectionType;
64
- menu: AptlyAppInjectionMenu;
63
+ menu: AptlyAppInjectionMenu[];
65
64
  model: AptlyPermissionModel;
66
65
  label: string;
67
- icon?: string;
66
+ icon?: AptlyMediaSrcSchema<ID, DATE>;
68
67
  src: string;
68
+ sandbox: AptlyAppSandbox[];
69
69
  }
70
70
 
71
71
  export interface AptlyAppProxySchema<ID> {
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>;
@@ -28,7 +28,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
28
28
  createdBy: ID;
29
29
  stats?: any;
30
30
  importID?: ID;
31
- thirdPartyUploader?: string;
31
+ source?: string;
32
32
  /**
33
33
  * @deprecated Use name
34
34
  */
@@ -69,3 +69,8 @@ export interface AptlyProductVariantSchema<ID, DATE> {
69
69
  height?: string;
70
70
  length?: string;
71
71
  }
72
+ export declare type AptlyProductImport = AptlyProductImportSchema<string, string>;
73
+ export interface AptlyProductImportSchema<ID, DATE> extends Partial<Omit<AptlyProductSchema<ID, DATE>, 'images' | 'documents'>> {
74
+ images: string[];
75
+ documents: string[];
76
+ }
package/models/product.ts CHANGED
@@ -29,7 +29,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
29
29
  createdBy: ID;
30
30
  stats?: any;
31
31
  importID?: ID;
32
- thirdPartyUploader?: string;
32
+ source?: string;
33
33
 
34
34
  /**
35
35
  * @deprecated Use name
@@ -75,3 +75,8 @@ export interface AptlyProductVariantSchema<ID, DATE> {
75
75
  length?: string;
76
76
  }
77
77
 
78
+ export type AptlyProductImport = AptlyProductImportSchema<string, string>;
79
+ export interface AptlyProductImportSchema<ID, DATE> extends Partial<Omit<AptlyProductSchema<ID, DATE>, 'images' | 'documents'>> {
80
+ images: string[];
81
+ documents: string[];
82
+ }
@@ -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.1",
3
+ "version": "1.6.4",
4
4
  "description": "Aptly types and enums",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",