@aptly-as/types 1.2.3 → 1.3.3

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.
@@ -1,5 +1,5 @@
1
- export declare type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'default';
1
+ export declare type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
2
2
  export declare type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
3
3
  export declare type AptlyPermissionModulesModels = 'default' | 'core' | 'algorithms' | 'booking' | 'unitExtraOptions' | 'unitExtraFields' | 'pages' | 'recommendations' | 'subcontractor' | 'optionLabels' | 'support' | 'testing';
4
4
  export declare type AptlyPermissionOrganizationModels = 'testingAdmin' | 'admin' | 'content' | 'reports' | 'support' | 'thirdParty' | 'default';
5
- export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationProducts' | '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';
5
+ export declare type AptlyPermissionModels = 'admin' | 'adminBilling' | 'adminProducers' | 'adminProducts' | 'adminReport' | 'adminStats' | 'adminSuppliers' | 'adminTags' | 'adminTesting' | 'adminUsers' | 'adminOrganizations' | 'beta' | 'organization' | 'organizationBooking' | 'organizationClients' | 'organizationMembers' | 'organizationOptionLabels' | 'organizationProducts' | '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';
@@ -1,5 +1,5 @@
1
1
 
2
- export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'default';
2
+ export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
3
3
 
4
4
  export type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
5
5
 
@@ -38,6 +38,7 @@ export type AptlyPermissionModels =
38
38
  | 'adminTesting'
39
39
  | 'adminUsers'
40
40
  | 'adminOrganizations'
41
+ | 'beta'
41
42
  | 'organization'
42
43
  | 'organizationBooking'
43
44
  | 'organizationClients'
@@ -2,6 +2,8 @@ export declare enum AptlyDocumentType {
2
2
  Document = "document",
3
3
  UnitPlan = "unitPlan",
4
4
  ElDrawing = "elDrawing",
5
+ VVSDrawing = "vvsDrawing",
6
+ BathroomDrawing = "bathroomDrawing",
5
7
  FDV = "fdv",
6
8
  Manual = "manual",
7
9
  KitchenDrawing = "kitchenDrawing",
@@ -13,5 +15,14 @@ export declare enum AptlyDocumentType {
13
15
  Public = "public",
14
16
  Prospect = "prospect",
15
17
  EndReport = "endReport",
16
- Contract = "contract"
18
+ Contract = "contract",
19
+ Chunk = "chunk"
20
+ }
21
+ export declare enum AptlyHistoryType {
22
+ Added = "added",
23
+ Updated = "updated",
24
+ Deleted = "deleted",
25
+ Moved = "moved",
26
+ Copied = "copied",
27
+ Imported = "imported"
17
28
  }
package/enums/document.js CHANGED
@@ -5,6 +5,8 @@ var AptlyDocumentType;
5
5
  AptlyDocumentType["Document"] = "document";
6
6
  AptlyDocumentType["UnitPlan"] = "unitPlan";
7
7
  AptlyDocumentType["ElDrawing"] = "elDrawing";
8
+ AptlyDocumentType["VVSDrawing"] = "vvsDrawing";
9
+ AptlyDocumentType["BathroomDrawing"] = "bathroomDrawing";
8
10
  AptlyDocumentType["FDV"] = "fdv";
9
11
  AptlyDocumentType["Manual"] = "manual";
10
12
  AptlyDocumentType["KitchenDrawing"] = "kitchenDrawing";
@@ -17,5 +19,15 @@ var AptlyDocumentType;
17
19
  AptlyDocumentType["Prospect"] = "prospect";
18
20
  AptlyDocumentType["EndReport"] = "endReport";
19
21
  AptlyDocumentType["Contract"] = "contract";
22
+ AptlyDocumentType["Chunk"] = "chunk";
20
23
  })(AptlyDocumentType = exports.AptlyDocumentType || (exports.AptlyDocumentType = {}));
24
+ var AptlyHistoryType;
25
+ (function (AptlyHistoryType) {
26
+ AptlyHistoryType["Added"] = "added";
27
+ AptlyHistoryType["Updated"] = "updated";
28
+ AptlyHistoryType["Deleted"] = "deleted";
29
+ AptlyHistoryType["Moved"] = "moved";
30
+ AptlyHistoryType["Copied"] = "copied";
31
+ AptlyHistoryType["Imported"] = "imported";
32
+ })(AptlyHistoryType = exports.AptlyHistoryType || (exports.AptlyHistoryType = {}));
21
33
  //# sourceMappingURL=document.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"document.js","sourceRoot":"","sources":["document.ts"],"names":[],"mappings":";;AAEA,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,sDAAiC,CAAA;IACjC,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;IACvC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;AACvB,CAAC,EAhBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAgB5B"}
1
+ {"version":3,"file":"document.js","sourceRoot":"","sources":["document.ts"],"names":[],"mappings":";;AACA,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,8CAAyB,CAAA;IACzB,wDAAmC,CAAA;IACnC,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,sDAAiC,CAAA;IACjC,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;IACvC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;AACjB,CAAC,EAnBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAmB5B;AAED,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B"}
package/enums/document.ts CHANGED
@@ -1,9 +1,10 @@
1
1
 
2
-
3
2
  export enum AptlyDocumentType {
4
3
  Document = 'document',
5
4
  UnitPlan = 'unitPlan',
6
5
  ElDrawing = 'elDrawing',
6
+ VVSDrawing = 'vvsDrawing',
7
+ BathroomDrawing = 'bathroomDrawing',
7
8
  FDV = 'fdv',
8
9
  Manual = 'manual',
9
10
  KitchenDrawing = 'kitchenDrawing',
@@ -15,5 +16,15 @@ export enum AptlyDocumentType {
15
16
  Public = 'public',
16
17
  Prospect = 'prospect',
17
18
  EndReport = 'endReport',
18
- Contract = 'contract'
19
+ Contract = 'contract',
20
+ Chunk = 'chunk',
21
+ }
22
+
23
+ export enum AptlyHistoryType {
24
+ Added = 'added',
25
+ Updated = 'updated',
26
+ Deleted = 'deleted',
27
+ Moved = 'moved',
28
+ Copied = 'copied',
29
+ Imported = 'imported',
19
30
  }
package/enums/index.d.ts CHANGED
@@ -82,3 +82,21 @@ export declare enum AptlyErrorCode {
82
82
  InvalidFields = "invalid-fields",
83
83
  SessionExpired = "session-expired"
84
84
  }
85
+ export declare enum AptlyQueueDownloadType {
86
+ Document = "document",
87
+ Image = "image"
88
+ }
89
+ export declare enum AptlyQueueDownloadStatus {
90
+ Queued = "queued",
91
+ Downloading = "downloading",
92
+ Downloaded = "downloaded",
93
+ Error = "error"
94
+ }
95
+ export declare enum AptlyIcon {
96
+ Welcome = "welcome",
97
+ Contact = "contact",
98
+ Help = "help",
99
+ Important = "important",
100
+ Info = "info",
101
+ Map = "map"
102
+ }
package/enums/index.js CHANGED
@@ -100,4 +100,25 @@ var AptlyErrorCode;
100
100
  AptlyErrorCode["InvalidFields"] = "invalid-fields";
101
101
  AptlyErrorCode["SessionExpired"] = "session-expired";
102
102
  })(AptlyErrorCode = exports.AptlyErrorCode || (exports.AptlyErrorCode = {}));
103
+ var AptlyQueueDownloadType;
104
+ (function (AptlyQueueDownloadType) {
105
+ AptlyQueueDownloadType["Document"] = "document";
106
+ AptlyQueueDownloadType["Image"] = "image";
107
+ })(AptlyQueueDownloadType = exports.AptlyQueueDownloadType || (exports.AptlyQueueDownloadType = {}));
108
+ var AptlyQueueDownloadStatus;
109
+ (function (AptlyQueueDownloadStatus) {
110
+ AptlyQueueDownloadStatus["Queued"] = "queued";
111
+ AptlyQueueDownloadStatus["Downloading"] = "downloading";
112
+ AptlyQueueDownloadStatus["Downloaded"] = "downloaded";
113
+ AptlyQueueDownloadStatus["Error"] = "error";
114
+ })(AptlyQueueDownloadStatus = exports.AptlyQueueDownloadStatus || (exports.AptlyQueueDownloadStatus = {}));
115
+ var AptlyIcon;
116
+ (function (AptlyIcon) {
117
+ AptlyIcon["Welcome"] = "welcome";
118
+ AptlyIcon["Contact"] = "contact";
119
+ AptlyIcon["Help"] = "help";
120
+ AptlyIcon["Important"] = "important";
121
+ AptlyIcon["Info"] = "info";
122
+ AptlyIcon["Map"] = "map";
123
+ })(AptlyIcon = exports.AptlyIcon || (exports.AptlyIcon = {}));
103
124
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,gCAA2B;AAC3B,qCAAgC;AAChC,+BAA0B;AAE1B,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,+CAA2B,CAAA;IAC3B,yDAAqC,CAAA;IACrC,iEAA6C,CAAA;IAC7C,qCAAiB,CAAA;IACjB,iDAA6B,CAAA;IAC7B,yDAAqC,CAAA;IACrC,uCAAmB,CAAA;AACrB,CAAC,EATW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAS3B;AAED,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,yDAAiC,CAAA;IACjC,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,yCAAiB,CAAA;AACnB,CAAC,EARW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAQ/B;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,8CAAe,CAAA;IACf,8CAAe,CAAA;IACf,0CAAW,CAAA;IACX,4CAAa,CAAA;AACf,CAAC,EAL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,wDAAyB,CAAA;IACzB,wDAAyB,CAAA;IACzB,0DAA2B,CAAA;AAC7B,CAAC,EALW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAKtC;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,oCAAW,CAAA;IACX,wCAAe,CAAA;IACf,8CAAqB,CAAA;AACvB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sDAA6B,CAAA;IAC7B,8CAAqB,CAAA;IACrB,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,kDAAgC,CAAA;IAChC,oDAAkC,CAAA;AACpC,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,+CAAqB,CAAA;IACrB,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,uDAA2B,CAAA;IAC3B,qDAAyB,CAAA;IACzB,2CAAe,CAAA;AACjB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,0BAAa,CAAA;IACb,oCAAuB,CAAA;IACvB,0BAAa,CAAA;IACb,wBAAW,CAAA;AACb,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
package/enums/index.ts CHANGED
@@ -95,4 +95,25 @@ export enum AptlySignageSignerRef {
95
95
  export enum AptlyErrorCode {
96
96
  InvalidFields = 'invalid-fields',
97
97
  SessionExpired = 'session-expired'
98
+ }
99
+
100
+ export enum AptlyQueueDownloadType {
101
+ Document = 'document',
102
+ Image = 'image',
103
+ }
104
+
105
+ export enum AptlyQueueDownloadStatus {
106
+ Queued = 'queued',
107
+ Downloading = 'downloading',
108
+ Downloaded = 'downloaded',
109
+ Error = 'error',
110
+ }
111
+
112
+ export enum AptlyIcon {
113
+ Welcome = 'welcome',
114
+ Contact = 'contact',
115
+ Help = 'help',
116
+ Important = 'important',
117
+ Info = 'info',
118
+ Map = 'map'
98
119
  }
@@ -9,6 +9,7 @@ export interface AptlyDocumentSchema<ID, DATE> {
9
9
  organization?: string;
10
10
  project?: string;
11
11
  unit?: string;
12
+ product?: string;
12
13
  text?: string;
13
14
  size: number;
14
15
  created: DATE;
@@ -11,6 +11,7 @@ export interface AptlyDocumentSchema<ID, DATE> {
11
11
  organization?: string;
12
12
  project?: string;
13
13
  unit?: string;
14
+ product?: string;
14
15
  text?: string;
15
16
  size: number;
16
17
  created: DATE;
@@ -1,3 +1,5 @@
1
+ import { AptlyUserSchema } from './user';
2
+ import { AptlyHistoryType } from '../enums';
1
3
  export declare type AptlyHistory = AptlyHistorySchema<string, string>;
2
4
  export interface AptlyHistorySchema<ID, DATE> {
3
5
  locked: boolean;
@@ -6,10 +8,12 @@ export interface AptlyHistorySchema<ID, DATE> {
6
8
  }
7
9
  export declare type AptlyHistoryHistory = AptlyHistoryHistorySchema<string, string>;
8
10
  export interface AptlyHistoryHistorySchema<ID, DATE> {
11
+ _id: ID;
12
+ type: AptlyHistoryType;
9
13
  referenceDate: DATE;
10
14
  diffDate: DATE;
11
15
  diff: object;
12
- user: ID;
16
+ user: ID | Pick<AptlyUserSchema<ID, DATE>, '_id' | 'fullName'>;
13
17
  }
14
18
  export interface AptlyDBCrawlerCleaner {
15
19
  dontClean?: boolean;
package/models/extends.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { AptlyUserSchema } from './user';
2
+ import { AptlyHistoryType } from '../enums';
1
3
 
2
4
  export type AptlyHistory = AptlyHistorySchema<string, string>;
3
5
  export interface AptlyHistorySchema<ID, DATE> {
@@ -8,10 +10,12 @@ export interface AptlyHistorySchema<ID, DATE> {
8
10
 
9
11
  export type AptlyHistoryHistory = AptlyHistoryHistorySchema<string, string>;
10
12
  export interface AptlyHistoryHistorySchema<ID, DATE> {
13
+ _id: ID;
14
+ type: AptlyHistoryType;
11
15
  referenceDate: DATE;
12
16
  diffDate: DATE;
13
17
  diff: object;
14
- user: ID;
18
+ user: ID | Pick<AptlyUserSchema<ID, DATE>, '_id' | 'fullName'>;
15
19
  }
16
20
 
17
21
  export interface AptlyDBCrawlerCleaner {
package/models/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './producer';
13
13
  export * from './product';
14
14
  export * from './product-stats';
15
15
  export * from './project';
16
+ export * from './queue-download';
16
17
  export * from './recommendation';
17
18
  export * from './supplier';
18
19
  export * from './tag';
package/models/index.js CHANGED
@@ -18,6 +18,7 @@ __export(require("./producer"));
18
18
  __export(require("./product"));
19
19
  __export(require("./product-stats"));
20
20
  __export(require("./project"));
21
+ __export(require("./queue-download"));
21
22
  __export(require("./recommendation"));
22
23
  __export(require("./supplier"));
23
24
  __export(require("./tag"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,+BAA0B;AAC1B,8BAAyB;AACzB,gCAA2B;AAC3B,+BAA0B;AAC1B,+BAA0B;AAC1B,6BAAwB;AACxB,4CAAuC;AACvC,oCAA+B;AAC/B,6BAAwB;AACxB,oCAA+B;AAC/B,4BAAuB;AACvB,gCAA2B;AAC3B,+BAA0B;AAC1B,qCAAgC;AAChC,+BAA0B;AAC1B,sCAAiC;AACjC,gCAA2B;AAC3B,2BAAsB;AACtB,4BAAuB;AACvB,qCAAgC;AAChC,kCAA6B;AAC7B,uCAAkC;AAClC,4BAAuB;AACvB,+BAA0B;AAC1B,qCAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,+BAA0B;AAC1B,8BAAyB;AACzB,gCAA2B;AAC3B,+BAA0B;AAC1B,+BAA0B;AAC1B,6BAAwB;AACxB,4CAAuC;AACvC,oCAA+B;AAC/B,6BAAwB;AACxB,oCAA+B;AAC/B,4BAAuB;AACvB,gCAA2B;AAC3B,+BAA0B;AAC1B,qCAAgC;AAChC,+BAA0B;AAC1B,sCAAiC;AACjC,sCAAiC;AACjC,gCAA2B;AAC3B,2BAAsB;AACtB,4BAAuB;AACvB,qCAAgC;AAChC,kCAA6B;AAC7B,uCAAkC;AAClC,4BAAuB;AACvB,+BAA0B;AAC1B,qCAAgC"}
package/models/index.ts CHANGED
@@ -14,6 +14,7 @@ export * from './producer';
14
14
  export * from './product';
15
15
  export * from './product-stats';
16
16
  export * from './project';
17
+ export * from './queue-download';
17
18
  export * from './recommendation';
18
19
  export * from './supplier';
19
20
  export * from './tag';
@@ -1,5 +1,6 @@
1
1
  import { AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
2
2
  import { AptlyMediaSrcSchema } from './media';
3
+ import { AptlyProducerSchema } from './producer';
3
4
  export declare type AptlyProduct = AptlyProductSchema<string, string>;
4
5
  export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyHistorySchema<ID, DATE> {
5
6
  _id: ID;
@@ -13,6 +14,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
13
14
  description: string;
14
15
  images: AptlyProductImageSchema<ID, DATE>[];
15
16
  variants: AptlyProductVariantSchema<ID, DATE>[];
17
+ url?: string;
16
18
  color?: string;
17
19
  colorLabel?: string;
18
20
  series?: string;
@@ -21,7 +23,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
21
23
  height?: string;
22
24
  length?: string;
23
25
  material?: string;
24
- producer?: ID;
26
+ producer?: ID | AptlyProducerSchema<ID, DATE>;
25
27
  supplier?: ID;
26
28
  tags: ID[];
27
29
  documents: ID[];
package/models/product.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
2
2
  import { AptlyMediaSrcSchema } from './media';
3
+ import { AptlyProducerSchema } from './producer';
3
4
 
4
5
  export type AptlyProduct = AptlyProductSchema<string, string>;
5
6
  export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyHistorySchema<ID, DATE> {
@@ -14,6 +15,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
14
15
  description: string;
15
16
  images: AptlyProductImageSchema<ID, DATE>[];
16
17
  variants: AptlyProductVariantSchema<ID, DATE>[];
18
+ url?: string;
17
19
  color?: string;
18
20
  colorLabel?: string;
19
21
  series?: string;
@@ -22,7 +24,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
22
24
  height?: string;
23
25
  length?: string;
24
26
  material?: string;
25
- producer?: ID;
27
+ producer?: ID | AptlyProducerSchema<ID, DATE>;
26
28
  supplier?: ID;
27
29
  tags: ID[];
28
30
  documents: ID[];
@@ -0,0 +1,20 @@
1
+ import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index';
2
+ import { AptlyDocumentSchema } from './document';
3
+ import { AptlyMediaSchema } from './media';
4
+ export declare type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
5
+ export interface AptlyQueueDownloadSchema<ID, DATE> {
6
+ _id: ID;
7
+ url: string;
8
+ type: AptlyQueueDownloadType;
9
+ status: AptlyQueueDownloadStatus;
10
+ error?: string;
11
+ organization?: ID;
12
+ project?: ID;
13
+ unit?: ID;
14
+ product?: ID;
15
+ productVariant?: ID;
16
+ document?: Partial<Pick<AptlyDocumentSchema<ID, DATE>, '_type' | 'name'>> | null;
17
+ media?: Partial<Pick<AptlyMediaSchema<ID, DATE>, 'name'>> | null;
18
+ createdAt: DATE;
19
+ updatedAt: DATE;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=queue-download.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue-download.js","sourceRoot":"","sources":["queue-download.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index';
2
+ import { AptlyDocumentSchema } from './document';
3
+ import { AptlyMediaSchema } from './media';
4
+
5
+ export type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
6
+ export interface AptlyQueueDownloadSchema<ID, DATE> {
7
+ _id: ID;
8
+ url: string;
9
+ type: AptlyQueueDownloadType;
10
+ status: AptlyQueueDownloadStatus;
11
+ error?: string;
12
+
13
+ organization?: ID;
14
+ project?: ID;
15
+ unit?: ID;
16
+ product?: ID;
17
+ productVariant?: ID;
18
+
19
+ document?: Partial<Pick<AptlyDocumentSchema<ID, DATE>, '_type' | 'name'>> | null;
20
+ media?: Partial<Pick<AptlyMediaSchema<ID, DATE>, 'name'>> | null;
21
+
22
+ createdAt: DATE;
23
+ updatedAt: DATE;
24
+ }
@@ -1,4 +1,4 @@
1
- import { AptlyMediaSrc } from './media';
1
+ import { AptlyMediaSrcSchema } from './media';
2
2
  export declare type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
3
3
  export interface AptlyRecommendationSchema<ID, DATE> {
4
4
  _id: ID;
@@ -9,6 +9,6 @@ export interface AptlyRecommendationSchema<ID, DATE> {
9
9
  color: string;
10
10
  text: string;
11
11
  image?: string | null;
12
- imageMedia?: AptlyMediaSrc | null;
12
+ imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
13
13
  archived?: boolean;
14
14
  }
@@ -1,4 +1,4 @@
1
- import { AptlyMediaSrc } from './media';
1
+ import { AptlyMediaSrcSchema } from './media';
2
2
 
3
3
  export type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
4
4
  export interface AptlyRecommendationSchema<ID, DATE> {
@@ -10,6 +10,6 @@ export interface AptlyRecommendationSchema<ID, DATE> {
10
10
  color: string;
11
11
  text: string;
12
12
  image?: string | null;
13
- imageMedia?: AptlyMediaSrc | null;
13
+ imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
14
14
  archived?: boolean;
15
15
  }
@@ -1,5 +1,10 @@
1
1
  import { AptlyHistorySchema } from './extends';
2
2
  import { AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType, AptlyUnitTemplateCategorySectionProductParamKey } from '../enums';
3
+ import { AptlyProductSchema } from './product';
4
+ import { AptlyProducerSchema } from './producer';
5
+ import { AptlyMediaSrcSchema } from './media';
6
+ import { AptlyUpsellTemplateSchema } from './upsell-template';
7
+ import { AptlyProjectAlgorithmSchema, AptlyProjectPeriodSchema } from './project';
3
8
  export declare type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
4
9
  export interface AptlyUnitTemplateBaseSchema<ID, DATE> {
5
10
  _id: ID;
@@ -31,7 +36,7 @@ export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
31
36
  text?: string;
32
37
  isRoom: boolean;
33
38
  size?: number;
34
- upsellTemplate?: ID;
39
+ upsellTemplate?: AptlyUpsellTemplateSchema<ID, DATE> | ID | null;
35
40
  _order_sections: ID[];
36
41
  sections: AptlyUnitTemplateCategorySectionSchema<ID, DATE>[];
37
42
  /**
@@ -51,23 +56,25 @@ export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
51
56
  packages: AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE>[];
52
57
  _order_products: ID[];
53
58
  products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
54
- period: ID;
59
+ period: AptlyProjectPeriodSchema<ID, DATE> | ID;
55
60
  }
56
61
  export declare type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
57
62
  export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
58
63
  _id: ID;
59
64
  name: string;
60
65
  standard: boolean;
61
- image?: string;
66
+ image?: string | null;
67
+ imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
62
68
  description?: string;
63
69
  _product_order?: ID[];
70
+ products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
64
71
  }
65
72
  export declare type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
66
73
  export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
67
74
  _id: ID;
68
75
  _orderID: ID;
69
- product?: ID;
70
- producer?: ID;
76
+ product?: ID | AptlyProductSchema<ID, DATE>;
77
+ producer?: ID | AptlyProducerSchema<ID, DATE>;
71
78
  availableProducts: ID[];
72
79
  variantPrices: AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID>[];
73
80
  text?: string;
@@ -77,16 +84,16 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
77
84
  consequenceParam?: string;
78
85
  amount: number;
79
86
  unitCost?: number;
80
- algorithm: ID;
87
+ algorithm: AptlyProjectAlgorithmSchema<ID, DATE> | ID;
81
88
  standard: boolean;
82
89
  standardVariant?: ID;
83
90
  partOfPackage?: ID;
84
- supplier?: ID;
91
+ supplier?: ID | null;
85
92
  customTitle?: string;
86
93
  customDescription?: string;
87
94
  notifyWhenPicked?: boolean;
88
95
  onlyShowInSelection?: boolean;
89
- recommendation?: ID;
96
+ recommendation?: ID | null;
90
97
  labels?: ID[];
91
98
  params: AptlyUnitTemplateCategorySectionProductParamSchema<ID>[];
92
99
  /**
@@ -3,6 +3,11 @@ import {
3
3
  AptlyCategorySectionDisplayType, AptlyUnitTemplateCategorySectionProductMeasureUnitType,
4
4
  AptlyUnitTemplateCategorySectionProductParamKey
5
5
  } from '../enums';
6
+ import { AptlyProductSchema } from './product';
7
+ import { AptlyProducerSchema } from './producer';
8
+ import { AptlyMediaSrcSchema } from './media';
9
+ import { AptlyUpsellTemplateSchema } from './upsell-template';
10
+ import { AptlyProjectAlgorithmSchema, AptlyProjectPeriodSchema } from './project';
6
11
 
7
12
  export type AptlyUnitTemplateBase = AptlyUnitTemplateBaseSchema<string, string>;
8
13
  export interface AptlyUnitTemplateBaseSchema<ID, DATE> {
@@ -39,7 +44,7 @@ export interface AptlyUnitTemplateCategorySchema<ID, DATE> {
39
44
  text?: string;
40
45
  isRoom: boolean;
41
46
  size?: number;
42
- upsellTemplate?: ID;
47
+ upsellTemplate?: AptlyUpsellTemplateSchema<ID, DATE> | ID | null;
43
48
  _order_sections: ID[];
44
49
  sections: AptlyUnitTemplateCategorySectionSchema<ID, DATE>[];
45
50
 
@@ -61,7 +66,7 @@ export interface AptlyUnitTemplateCategorySectionSchema<ID, DATE> {
61
66
  packages: AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE>[];
62
67
  _order_products: ID[];
63
68
  products: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
64
- period: ID;
69
+ period: AptlyProjectPeriodSchema<ID, DATE> | ID;
65
70
  }
66
71
 
67
72
  export type AptlyUnitTemplateCategorySectionPackage = AptlyUnitTemplateCategorySectionPackageSchema<string, string>;
@@ -69,17 +74,19 @@ export interface AptlyUnitTemplateCategorySectionPackageSchema<ID, DATE> {
69
74
  _id: ID;
70
75
  name: string;
71
76
  standard: boolean;
72
- image?: string;
77
+ image?: string | null;
78
+ imageMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
73
79
  description?: string;
74
80
  _product_order?: ID[];
81
+ products?: AptlyUnitTemplateCategorySectionProductSchema<ID, DATE>[];
75
82
  }
76
83
 
77
84
  export type AptlyUnitTemplateCategorySectionProduct = AptlyUnitTemplateCategorySectionProductSchema<string, string>;
78
85
  export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
79
86
  _id: ID;
80
87
  _orderID: ID;
81
- product?: ID;
82
- producer?: ID;
88
+ product?: ID | AptlyProductSchema<ID, DATE>;
89
+ producer?: ID | AptlyProducerSchema<ID, DATE>;
83
90
  availableProducts: ID[];
84
91
  variantPrices: AptlyUnitTemplateCategorySectionProductVariantPriceSchema<ID>[];
85
92
  text?: string;
@@ -89,16 +96,16 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
89
96
  consequenceParam?: string;
90
97
  amount: number;
91
98
  unitCost?: number;
92
- algorithm: ID;
99
+ algorithm: AptlyProjectAlgorithmSchema<ID, DATE> | ID;
93
100
  standard: boolean;
94
101
  standardVariant?: ID;
95
102
  partOfPackage?: ID;
96
- supplier?: ID;
103
+ supplier?: ID | null;
97
104
  customTitle?: string;
98
105
  customDescription?: string;
99
106
  notifyWhenPicked?: boolean;
100
107
  onlyShowInSelection?: boolean;
101
- recommendation?: ID;
108
+ recommendation?: ID | null;
102
109
  labels?: ID[];
103
110
  params: AptlyUnitTemplateCategorySectionProductParamSchema<ID>[];
104
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "1.2.3",
3
+ "version": "1.3.3",
4
4
  "description": "Aptly types and enums",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",