@aptly-as/types 2.5.3 → 2.5.5

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.
Files changed (109) hide show
  1. package/core/api.d.ts +13 -13
  2. package/core/api.js +1 -1
  3. package/core/app.d.ts +37 -37
  4. package/core/app.js +9 -9
  5. package/core/cloudinary.d.ts +2 -2
  6. package/core/cloudinary.js +1 -1
  7. package/core/fields.d.ts +19 -19
  8. package/core/fields.js +1 -1
  9. package/core/index.d.ts +16 -16
  10. package/core/index.js +9 -9
  11. package/core/job.d.ts +21 -21
  12. package/core/job.js +11 -11
  13. package/core/redirect.d.ts +17 -17
  14. package/core/redirect.js +12 -12
  15. package/core/scope.d.ts +124 -124
  16. package/core/scope.js +117 -117
  17. package/core/signage.d.ts +19 -19
  18. package/core/signage.js +1 -1
  19. package/core/webhook-event-data.d.ts +16 -16
  20. package/core/webhook-event-data.js +1 -1
  21. package/enums/document.d.ts +38 -38
  22. package/enums/document.js +41 -41
  23. package/enums/fields.d.ts +30 -30
  24. package/enums/fields.js +31 -31
  25. package/enums/index.d.ts +151 -150
  26. package/enums/index.js +171 -170
  27. package/enums/unit-template.d.ts +10 -10
  28. package/enums/unit-template.js +12 -12
  29. package/enums/webhook.d.ts +23 -23
  30. package/enums/webhook.js +26 -26
  31. package/error/error.d.ts +28 -28
  32. package/error/error.js +50 -50
  33. package/error/index.d.ts +1 -1
  34. package/error/index.js +1 -1
  35. package/index.d.ts +4 -4
  36. package/index.js +4 -4
  37. package/models/algorithm.d.ts +32 -32
  38. package/models/algorithm.js +15 -15
  39. package/models/app.d.ts +102 -101
  40. package/models/app.js +53 -52
  41. package/models/availability.d.ts +35 -35
  42. package/models/availability.js +1 -1
  43. package/models/booking.d.ts +57 -57
  44. package/models/booking.js +1 -1
  45. package/models/client.d.ts +10 -10
  46. package/models/client.js +1 -1
  47. package/models/department.d.ts +28 -28
  48. package/models/department.js +1 -1
  49. package/models/document.d.ts +37 -37
  50. package/models/document.js +1 -1
  51. package/models/email.d.ts +16 -16
  52. package/models/email.js +1 -1
  53. package/models/extends.d.ts +37 -37
  54. package/models/extends.js +1 -1
  55. package/models/index.d.ts +34 -34
  56. package/models/index.js +34 -34
  57. package/models/inquiry.d.ts +57 -57
  58. package/models/inquiry.js +1 -1
  59. package/models/media.d.ts +50 -50
  60. package/models/media.js +1 -1
  61. package/models/module.d.ts +19 -19
  62. package/models/module.js +1 -1
  63. package/models/note.d.ts +19 -19
  64. package/models/note.js +1 -1
  65. package/models/notification-trigger.d.ts +9 -9
  66. package/models/notification-trigger.js +1 -1
  67. package/models/option-label.d.ts +7 -7
  68. package/models/option-label.js +1 -1
  69. package/models/order.d.ts +164 -163
  70. package/models/order.js +20 -20
  71. package/models/organization.d.ts +86 -86
  72. package/models/organization.js +7 -7
  73. package/models/page.d.ts +22 -22
  74. package/models/page.js +1 -1
  75. package/models/payment.d.ts +94 -94
  76. package/models/payment.js +1 -1
  77. package/models/period.d.ts +8 -8
  78. package/models/period.js +1 -1
  79. package/models/producer.d.ts +24 -24
  80. package/models/producer.js +1 -1
  81. package/models/product-stats.d.ts +18 -18
  82. package/models/product-stats.js +1 -1
  83. package/models/product.d.ts +78 -78
  84. package/models/product.js +1 -1
  85. package/models/project.d.ts +124 -124
  86. package/models/project.js +1 -1
  87. package/models/queue-download.d.ts +19 -19
  88. package/models/queue-download.js +1 -1
  89. package/models/recommendation.d.ts +12 -12
  90. package/models/recommendation.js +1 -1
  91. package/models/supplier.d.ts +12 -12
  92. package/models/supplier.js +1 -1
  93. package/models/tag.d.ts +5 -5
  94. package/models/tag.js +1 -1
  95. package/models/unit-email.d.ts +21 -21
  96. package/models/unit-email.js +1 -1
  97. package/models/unit-template.d.ts +124 -124
  98. package/models/unit-template.js +1 -1
  99. package/models/unit.d.ts +243 -243
  100. package/models/unit.js +1 -1
  101. package/models/upsell-template.d.ts +13 -13
  102. package/models/upsell-template.js +1 -1
  103. package/models/user.d.ts +33 -33
  104. package/models/user.js +16 -16
  105. package/models/webhook-event.d.ts +43 -43
  106. package/models/webhook-event.js +1 -1
  107. package/models/webhook.d.ts +15 -15
  108. package/models/webhook.js +1 -1
  109. package/package.json +5 -5
@@ -1,10 +1,10 @@
1
- export declare enum AptlyUnitTemplateCategorySectionProductParamKey {
2
- TextContent = "textContent",
3
- PickTool = "pickTool",
4
- Logic = "logic"
5
- }
6
- export declare enum AptlyUnitTemplateCategorySectionProductMeasureUnitType {
7
- Unit = "unit",
8
- KVM = "kvm",
9
- LM = "lm"
10
- }
1
+ export declare enum AptlyUnitTemplateCategorySectionProductParamKey {
2
+ TextContent = "textContent",
3
+ PickTool = "pickTool",
4
+ Logic = "logic"
5
+ }
6
+ export declare enum AptlyUnitTemplateCategorySectionProductMeasureUnitType {
7
+ Unit = "unit",
8
+ KVM = "kvm",
9
+ LM = "lm"
10
+ }
@@ -1,12 +1,12 @@
1
- export var AptlyUnitTemplateCategorySectionProductParamKey;
2
- (function (AptlyUnitTemplateCategorySectionProductParamKey) {
3
- AptlyUnitTemplateCategorySectionProductParamKey["TextContent"] = "textContent";
4
- AptlyUnitTemplateCategorySectionProductParamKey["PickTool"] = "pickTool";
5
- AptlyUnitTemplateCategorySectionProductParamKey["Logic"] = "logic";
6
- })(AptlyUnitTemplateCategorySectionProductParamKey || (AptlyUnitTemplateCategorySectionProductParamKey = {}));
7
- export var AptlyUnitTemplateCategorySectionProductMeasureUnitType;
8
- (function (AptlyUnitTemplateCategorySectionProductMeasureUnitType) {
9
- AptlyUnitTemplateCategorySectionProductMeasureUnitType["Unit"] = "unit";
10
- AptlyUnitTemplateCategorySectionProductMeasureUnitType["KVM"] = "kvm";
11
- AptlyUnitTemplateCategorySectionProductMeasureUnitType["LM"] = "lm";
12
- })(AptlyUnitTemplateCategorySectionProductMeasureUnitType || (AptlyUnitTemplateCategorySectionProductMeasureUnitType = {}));
1
+ export var AptlyUnitTemplateCategorySectionProductParamKey;
2
+ (function (AptlyUnitTemplateCategorySectionProductParamKey) {
3
+ AptlyUnitTemplateCategorySectionProductParamKey["TextContent"] = "textContent";
4
+ AptlyUnitTemplateCategorySectionProductParamKey["PickTool"] = "pickTool";
5
+ AptlyUnitTemplateCategorySectionProductParamKey["Logic"] = "logic";
6
+ })(AptlyUnitTemplateCategorySectionProductParamKey || (AptlyUnitTemplateCategorySectionProductParamKey = {}));
7
+ export var AptlyUnitTemplateCategorySectionProductMeasureUnitType;
8
+ (function (AptlyUnitTemplateCategorySectionProductMeasureUnitType) {
9
+ AptlyUnitTemplateCategorySectionProductMeasureUnitType["Unit"] = "unit";
10
+ AptlyUnitTemplateCategorySectionProductMeasureUnitType["KVM"] = "kvm";
11
+ AptlyUnitTemplateCategorySectionProductMeasureUnitType["LM"] = "lm";
12
+ })(AptlyUnitTemplateCategorySectionProductMeasureUnitType || (AptlyUnitTemplateCategorySectionProductMeasureUnitType = {}));
@@ -1,23 +1,23 @@
1
- export declare enum AptlyWebhookType {
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
- UnitOrderCreated = "aptly.unit.order.created",
9
- UnitOrderSigned = "aptly.unit.order.signed",
10
- UnitReportFinal = "aptly.unit.report.final",
11
- OrganizationAppUpdated = "aptly.organization.app.updated",
12
- OrganizationAppDeleted = "aptly.organization.app.deleted"
13
- }
14
- export declare enum AptlyWebhookStatus {
15
- Active = "active",
16
- Gone = "gone-401"
17
- }
18
- export declare enum AptlyWebhookEventStatus {
19
- New = "new",
20
- Completed = "completed",
21
- Retry = "retry",
22
- Failed = "failed"
23
- }
1
+ export declare enum AptlyWebhookType {
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
+ UnitOrderCreated = "aptly.unit.order.created",
9
+ UnitOrderSigned = "aptly.unit.order.signed",
10
+ UnitReportFinal = "aptly.unit.report.final",
11
+ OrganizationAppUpdated = "aptly.organization.app.updated",
12
+ OrganizationAppDeleted = "aptly.organization.app.deleted"
13
+ }
14
+ export declare enum AptlyWebhookStatus {
15
+ Active = "active",
16
+ Gone = "gone-401"
17
+ }
18
+ export declare enum AptlyWebhookEventStatus {
19
+ New = "new",
20
+ Completed = "completed",
21
+ Retry = "retry",
22
+ Failed = "failed"
23
+ }
package/enums/webhook.js CHANGED
@@ -1,26 +1,26 @@
1
- export var AptlyWebhookType;
2
- (function (AptlyWebhookType) {
3
- AptlyWebhookType["ProjectCreated"] = "aptly.project.created";
4
- AptlyWebhookType["ProjectUpdated"] = "aptly.project.updated";
5
- AptlyWebhookType["UnitCreated"] = "aptly.unit.created";
6
- AptlyWebhookType["UnitUpdated"] = "aptly.unit.updated";
7
- AptlyWebhookType["UnitMessageNew"] = "aptly.unit.message.new";
8
- AptlyWebhookType["UnitMessageReply"] = "aptly.unit.message.reply";
9
- AptlyWebhookType["UnitOrderCreated"] = "aptly.unit.order.created";
10
- AptlyWebhookType["UnitOrderSigned"] = "aptly.unit.order.signed";
11
- AptlyWebhookType["UnitReportFinal"] = "aptly.unit.report.final";
12
- AptlyWebhookType["OrganizationAppUpdated"] = "aptly.organization.app.updated";
13
- AptlyWebhookType["OrganizationAppDeleted"] = "aptly.organization.app.deleted";
14
- })(AptlyWebhookType || (AptlyWebhookType = {}));
15
- export var AptlyWebhookStatus;
16
- (function (AptlyWebhookStatus) {
17
- AptlyWebhookStatus["Active"] = "active";
18
- AptlyWebhookStatus["Gone"] = "gone-401";
19
- })(AptlyWebhookStatus || (AptlyWebhookStatus = {}));
20
- export var AptlyWebhookEventStatus;
21
- (function (AptlyWebhookEventStatus) {
22
- AptlyWebhookEventStatus["New"] = "new";
23
- AptlyWebhookEventStatus["Completed"] = "completed";
24
- AptlyWebhookEventStatus["Retry"] = "retry";
25
- AptlyWebhookEventStatus["Failed"] = "failed";
26
- })(AptlyWebhookEventStatus || (AptlyWebhookEventStatus = {}));
1
+ export var AptlyWebhookType;
2
+ (function (AptlyWebhookType) {
3
+ AptlyWebhookType["ProjectCreated"] = "aptly.project.created";
4
+ AptlyWebhookType["ProjectUpdated"] = "aptly.project.updated";
5
+ AptlyWebhookType["UnitCreated"] = "aptly.unit.created";
6
+ AptlyWebhookType["UnitUpdated"] = "aptly.unit.updated";
7
+ AptlyWebhookType["UnitMessageNew"] = "aptly.unit.message.new";
8
+ AptlyWebhookType["UnitMessageReply"] = "aptly.unit.message.reply";
9
+ AptlyWebhookType["UnitOrderCreated"] = "aptly.unit.order.created";
10
+ AptlyWebhookType["UnitOrderSigned"] = "aptly.unit.order.signed";
11
+ AptlyWebhookType["UnitReportFinal"] = "aptly.unit.report.final";
12
+ AptlyWebhookType["OrganizationAppUpdated"] = "aptly.organization.app.updated";
13
+ AptlyWebhookType["OrganizationAppDeleted"] = "aptly.organization.app.deleted";
14
+ })(AptlyWebhookType || (AptlyWebhookType = {}));
15
+ export var AptlyWebhookStatus;
16
+ (function (AptlyWebhookStatus) {
17
+ AptlyWebhookStatus["Active"] = "active";
18
+ AptlyWebhookStatus["Gone"] = "gone-401";
19
+ })(AptlyWebhookStatus || (AptlyWebhookStatus = {}));
20
+ export var AptlyWebhookEventStatus;
21
+ (function (AptlyWebhookEventStatus) {
22
+ AptlyWebhookEventStatus["New"] = "new";
23
+ AptlyWebhookEventStatus["Completed"] = "completed";
24
+ AptlyWebhookEventStatus["Retry"] = "retry";
25
+ AptlyWebhookEventStatus["Failed"] = "failed";
26
+ })(AptlyWebhookEventStatus || (AptlyWebhookEventStatus = {}));
package/error/error.d.ts CHANGED
@@ -1,28 +1,28 @@
1
- export interface AptlyErrorBody {
2
- name: 'AptlyError';
3
- status: number;
4
- title: string;
5
- id?: string;
6
- code?: number;
7
- detail?: string;
8
- errors?: AptlyErrorBodySimple[];
9
- link?: string;
10
- error?: string;
11
- }
12
- export type AptlyErrorBodySimple = Pick<AptlyErrorBody, 'status' | 'title' | 'detail' | 'link'>;
13
- export declare class AptlyError extends Error {
14
- readonly data: Omit<AptlyErrorBody, 'name'>;
15
- readonly error?: Error | undefined;
16
- readonly name = "AptlyError";
17
- id: string;
18
- constructor(data: Omit<AptlyErrorBody, 'name'>, error?: Error | undefined);
19
- static fromFetchResponse(response: Response): Promise<AptlyError>;
20
- get status(): number;
21
- get title(): string;
22
- get code(): number | undefined;
23
- get detail(): string | undefined;
24
- get link(): string | undefined;
25
- get errors(): AptlyErrorBodySimple[];
26
- toJSON(): AptlyErrorBody;
27
- toString(): string;
28
- }
1
+ export interface AptlyErrorBody {
2
+ name: 'AptlyError';
3
+ status: number;
4
+ title: string;
5
+ id?: string;
6
+ code?: number;
7
+ detail?: string;
8
+ errors?: AptlyErrorBodySimple[];
9
+ link?: string;
10
+ error?: string;
11
+ }
12
+ export type AptlyErrorBodySimple = Pick<AptlyErrorBody, 'status' | 'title' | 'detail' | 'link'>;
13
+ export declare class AptlyError extends Error {
14
+ readonly data: Omit<AptlyErrorBody, 'name'>;
15
+ readonly error?: Error | undefined;
16
+ readonly name = "AptlyError";
17
+ id: string;
18
+ constructor(data: Omit<AptlyErrorBody, 'name'>, error?: Error | undefined);
19
+ static fromFetchResponse(response: Response): Promise<AptlyError>;
20
+ get status(): number;
21
+ get title(): string;
22
+ get code(): number | undefined;
23
+ get detail(): string | undefined;
24
+ get link(): string | undefined;
25
+ get errors(): AptlyErrorBodySimple[];
26
+ toJSON(): AptlyErrorBody;
27
+ toString(): string;
28
+ }
package/error/error.js CHANGED
@@ -1,50 +1,50 @@
1
- export class AptlyError extends Error {
2
- constructor(data, error) {
3
- super(data.title);
4
- this.data = data;
5
- this.error = error;
6
- this.name = 'AptlyError';
7
- this.id = data.id || '';
8
- }
9
- static async fromFetchResponse(response) {
10
- if (response.headers.get('content-type') !== 'application/json') {
11
- const body = await response.json();
12
- if (body.name === AptlyError.name) {
13
- return new AptlyError(body);
14
- }
15
- }
16
- throw new AptlyError({
17
- id: 'unknown',
18
- status: response.status,
19
- title: response.statusText,
20
- detail: `Failed to fetch from url: ${response.url}`,
21
- });
22
- }
23
- get status() {
24
- return this.data.status;
25
- }
26
- get title() {
27
- return this.data.title;
28
- }
29
- get code() {
30
- return this.data.code;
31
- }
32
- get detail() {
33
- return this.data.detail;
34
- }
35
- get link() {
36
- return this.data.link;
37
- }
38
- get errors() {
39
- return this.data.errors || [];
40
- }
41
- toJSON() {
42
- return {
43
- name: this.name,
44
- ...this.data,
45
- };
46
- }
47
- toString() {
48
- return this.message;
49
- }
50
- }
1
+ export class AptlyError extends Error {
2
+ constructor(data, error) {
3
+ super(data.title);
4
+ this.data = data;
5
+ this.error = error;
6
+ this.name = 'AptlyError';
7
+ this.id = data.id || '';
8
+ }
9
+ static async fromFetchResponse(response) {
10
+ if (response.headers.get('content-type') !== 'application/json') {
11
+ const body = await response.json();
12
+ if (body.name === AptlyError.name) {
13
+ return new AptlyError(body);
14
+ }
15
+ }
16
+ throw new AptlyError({
17
+ id: 'unknown',
18
+ status: response.status,
19
+ title: response.statusText,
20
+ detail: `Failed to fetch from url: ${response.url}`,
21
+ });
22
+ }
23
+ get status() {
24
+ return this.data.status;
25
+ }
26
+ get title() {
27
+ return this.data.title;
28
+ }
29
+ get code() {
30
+ return this.data.code;
31
+ }
32
+ get detail() {
33
+ return this.data.detail;
34
+ }
35
+ get link() {
36
+ return this.data.link;
37
+ }
38
+ get errors() {
39
+ return this.data.errors || [];
40
+ }
41
+ toJSON() {
42
+ return {
43
+ name: this.name,
44
+ ...this.data,
45
+ };
46
+ }
47
+ toString() {
48
+ return this.message;
49
+ }
50
+ }
package/error/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './error.js';
1
+ export * from './error.js';
package/error/index.js CHANGED
@@ -1 +1 @@
1
- export * from './error.js';
1
+ export * from './error.js';
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './core/index.js';
2
- export * from './enums/index.js';
3
- export * from './error/index.js';
4
- export * from './models/index.js';
1
+ export * from './core/index.js';
2
+ export * from './enums/index.js';
3
+ export * from './error/index.js';
4
+ export * from './models/index.js';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './core/index.js';
2
- export * from './enums/index.js';
3
- export * from './error/index.js';
4
- export * from './models/index.js';
1
+ export * from './core/index.js';
2
+ export * from './enums/index.js';
3
+ export * from './error/index.js';
4
+ export * from './models/index.js';
@@ -1,32 +1,32 @@
1
- export declare enum AptlyAlgorithmPipelineOperation {
2
- Base = "base",
3
- Add = "add",
4
- Subtract = "subtract",
5
- Multiply = "multiply",
6
- Vat = "vat",
7
- Fee = "fee"
8
- }
9
- export declare enum AptlyAlgorithmPipelineApplyTo {
10
- Base = "base",
11
- Root = "root",
12
- PreviousStep = "previousStep"
13
- }
14
- export type AptlyAlgorithm = AptlyAlgorithmSchema<string>;
15
- export interface AptlyAlgorithmSchema<ID> {
16
- _id: ID;
17
- name: string;
18
- pipeline: AptlyAlgorithmPipelineSchema<ID>[];
19
- reversed?: boolean;
20
- vat?: number;
21
- fee?: number;
22
- organization?: ID;
23
- project?: ID;
24
- }
25
- export type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
26
- export interface AptlyAlgorithmPipelineSchema<ID> {
27
- _id: ID;
28
- label: string;
29
- operation: AptlyAlgorithmPipelineOperation;
30
- value: number;
31
- applyTo: AptlyAlgorithmPipelineApplyTo;
32
- }
1
+ export declare enum AptlyAlgorithmPipelineOperation {
2
+ Base = "base",
3
+ Add = "add",
4
+ Subtract = "subtract",
5
+ Multiply = "multiply",
6
+ Vat = "vat",
7
+ Fee = "fee"
8
+ }
9
+ export declare enum AptlyAlgorithmPipelineApplyTo {
10
+ Base = "base",
11
+ Root = "root",
12
+ PreviousStep = "previousStep"
13
+ }
14
+ export type AptlyAlgorithm = AptlyAlgorithmSchema<string>;
15
+ export interface AptlyAlgorithmSchema<ID> {
16
+ _id: ID;
17
+ name: string;
18
+ pipeline: AptlyAlgorithmPipelineSchema<ID>[];
19
+ reversed?: boolean;
20
+ vat?: number;
21
+ fee?: number;
22
+ organization?: ID;
23
+ project?: ID;
24
+ }
25
+ export type AptlyAlgorithmPipeline = AptlyAlgorithmPipelineSchema<string>;
26
+ export interface AptlyAlgorithmPipelineSchema<ID> {
27
+ _id: ID;
28
+ label: string;
29
+ operation: AptlyAlgorithmPipelineOperation;
30
+ value: number;
31
+ applyTo: AptlyAlgorithmPipelineApplyTo;
32
+ }
@@ -1,15 +1,15 @@
1
- export var AptlyAlgorithmPipelineOperation;
2
- (function (AptlyAlgorithmPipelineOperation) {
3
- AptlyAlgorithmPipelineOperation["Base"] = "base";
4
- AptlyAlgorithmPipelineOperation["Add"] = "add";
5
- AptlyAlgorithmPipelineOperation["Subtract"] = "subtract";
6
- AptlyAlgorithmPipelineOperation["Multiply"] = "multiply";
7
- AptlyAlgorithmPipelineOperation["Vat"] = "vat";
8
- AptlyAlgorithmPipelineOperation["Fee"] = "fee";
9
- })(AptlyAlgorithmPipelineOperation || (AptlyAlgorithmPipelineOperation = {}));
10
- export var AptlyAlgorithmPipelineApplyTo;
11
- (function (AptlyAlgorithmPipelineApplyTo) {
12
- AptlyAlgorithmPipelineApplyTo["Base"] = "base";
13
- AptlyAlgorithmPipelineApplyTo["Root"] = "root";
14
- AptlyAlgorithmPipelineApplyTo["PreviousStep"] = "previousStep";
15
- })(AptlyAlgorithmPipelineApplyTo || (AptlyAlgorithmPipelineApplyTo = {}));
1
+ export var AptlyAlgorithmPipelineOperation;
2
+ (function (AptlyAlgorithmPipelineOperation) {
3
+ AptlyAlgorithmPipelineOperation["Base"] = "base";
4
+ AptlyAlgorithmPipelineOperation["Add"] = "add";
5
+ AptlyAlgorithmPipelineOperation["Subtract"] = "subtract";
6
+ AptlyAlgorithmPipelineOperation["Multiply"] = "multiply";
7
+ AptlyAlgorithmPipelineOperation["Vat"] = "vat";
8
+ AptlyAlgorithmPipelineOperation["Fee"] = "fee";
9
+ })(AptlyAlgorithmPipelineOperation || (AptlyAlgorithmPipelineOperation = {}));
10
+ export var AptlyAlgorithmPipelineApplyTo;
11
+ (function (AptlyAlgorithmPipelineApplyTo) {
12
+ AptlyAlgorithmPipelineApplyTo["Base"] = "base";
13
+ AptlyAlgorithmPipelineApplyTo["Root"] = "root";
14
+ AptlyAlgorithmPipelineApplyTo["PreviousStep"] = "previousStep";
15
+ })(AptlyAlgorithmPipelineApplyTo || (AptlyAlgorithmPipelineApplyTo = {}));
package/models/app.d.ts CHANGED
@@ -1,101 +1,102 @@
1
- import { AptlyBaseSchema } from './extends.js';
2
- import { AptlyWebhookType } from '../enums/index.js';
3
- import { AptlyAppSandbox, AptlyField, AptlyScopes } from '../core/index.js';
4
- import { AptlyMediaSrcSchema } from './media.js';
5
- export type AptlyApp = AptlyAppSchema<string, string>;
6
- export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
7
- slug: string;
8
- description: string;
9
- installUrl: string;
10
- redirectUris: string[];
11
- clientSecret: string;
12
- user: ID;
13
- logo?: AptlyMediaSrcSchema<ID, DATE> | null;
14
- banner?: AptlyMediaSrcSchema<ID, DATE> | null;
15
- settings: AptlyAppSettingSchema<ID>[];
16
- webhooks: AptlyAppWebhookSchema<ID>[];
17
- menus: AptlyAppMenuSchema<ID, DATE>[];
18
- cost?: number;
19
- implements: AptlyAppImplementation[];
20
- sign?: {
21
- orderUrl: string;
22
- };
23
- payment?: {
24
- orderUrl: string;
25
- cancelUrl: string;
26
- captureUrl: string;
27
- voidUrl: string;
28
- };
29
- }
30
- export interface AptlyAppSignMethod {
31
- value: string;
32
- label: string;
33
- }
34
- export declare enum AptlyAppImplementation {
35
- Sign = "sign",
36
- Payment = "payment"
37
- }
38
- export declare enum AptlyAppImplementationSetting {
39
- SignCostPer = "costPerSign",
40
- SignMethod = "signMethod"
41
- }
42
- export type AptlyAppSetting = AptlyAppSettingSchema<string>;
43
- export interface AptlyAppSettingSchema<ID> extends AptlyField {
44
- _id: ID;
45
- key: string;
46
- defaultValue: any;
47
- }
48
- export type AptlyAppWebhook = AptlyAppWebhookSchema<string>;
49
- export interface AptlyAppWebhookSchema<ID> {
50
- _id: ID;
51
- types: AptlyWebhookType[];
52
- url: string;
53
- }
54
- export declare enum AptlyUserInjection {
55
- Base = "",
56
- Admin = "admin"
57
- }
58
- export declare enum AptlyAdminInjection {
59
- Base = "",
60
- Content = "content",
61
- Modules = "modules",
62
- Admin = "admin"
63
- }
64
- export declare enum AptlyOrganizationInjection {
65
- Base = "",
66
- Project = "project",
67
- Options = "options",
68
- Products = "products",
69
- Content = "content",
70
- Admin = "admin"
71
- }
72
- export declare enum AptlyProjectInjection {
73
- Base = "",
74
- Options = "options",
75
- Products = "products",
76
- Content = "content",
77
- Project = "project",
78
- Support = "support",
79
- Admin = "admin"
80
- }
81
- export declare enum AptlyUnitInjection {
82
- Base = "",
83
- Options = "options",
84
- Support = "support",
85
- Admin = "admin"
86
- }
87
- export type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}` | `project-${AptlyProjectInjection}` | `unit-${AptlyUnitInjection}`;
88
- export declare enum AptlyAppInjectionType {
89
- Iframe = "iframe"
90
- }
91
- export type AptlyAppMenu = AptlyAppMenuSchema<string, string>;
92
- export interface AptlyAppMenuSchema<ID, DATE> {
93
- _id: ID;
94
- type: AptlyAppInjectionType;
95
- menu: AptlyAppInjectionMenu[];
96
- model: AptlyScopes;
97
- label: string;
98
- icon?: AptlyMediaSrcSchema<ID, DATE> | null;
99
- src: string;
100
- sandbox: AptlyAppSandbox[];
101
- }
1
+ import { AptlyBaseSchema } from './extends.js';
2
+ import { AptlyWebhookType } from '../enums/index.js';
3
+ import { AptlyAppSandbox, AptlyField, AptlyScopes } from '../core/index.js';
4
+ import { AptlyMediaSrcSchema } from './media.js';
5
+ export type AptlyApp = AptlyAppSchema<string, string>;
6
+ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
7
+ slug: string;
8
+ description: string;
9
+ installUrl: string;
10
+ redirectUris: string[];
11
+ clientSecret: string;
12
+ user: ID;
13
+ logo?: AptlyMediaSrcSchema<ID, DATE> | null;
14
+ banner?: AptlyMediaSrcSchema<ID, DATE> | null;
15
+ settings: AptlyAppSettingSchema<ID>[];
16
+ webhooks: AptlyAppWebhookSchema<ID>[];
17
+ menus: AptlyAppMenuSchema<ID, DATE>[];
18
+ cost?: number;
19
+ implements: AptlyAppImplementation[];
20
+ sign?: {
21
+ orderUrl: string;
22
+ };
23
+ payment?: {
24
+ orderUrl: string;
25
+ cancelUrl: string;
26
+ captureUrl: string;
27
+ voidUrl: string;
28
+ };
29
+ }
30
+ export interface AptlyAppSignMethod {
31
+ value: string;
32
+ label: string;
33
+ }
34
+ export declare enum AptlyAppImplementation {
35
+ Sign = "sign",
36
+ Payment = "payment"
37
+ }
38
+ export declare enum AptlyAppImplementationSetting {
39
+ SignCostPer = "costPerSign",
40
+ SignMethod = "signMethod"
41
+ }
42
+ export type AptlyAppSetting = AptlyAppSettingSchema<string>;
43
+ export interface AptlyAppSettingSchema<ID> extends AptlyField {
44
+ _id: ID;
45
+ key: string;
46
+ defaultValue: any;
47
+ }
48
+ export type AptlyAppWebhook = AptlyAppWebhookSchema<string>;
49
+ export interface AptlyAppWebhookSchema<ID> {
50
+ _id: ID;
51
+ types: AptlyWebhookType[];
52
+ url: string;
53
+ }
54
+ export declare enum AptlyUserInjection {
55
+ Base = "",
56
+ Admin = "admin"
57
+ }
58
+ export declare enum AptlyAdminInjection {
59
+ Base = "",
60
+ Content = "content",
61
+ Modules = "modules",
62
+ Admin = "admin"
63
+ }
64
+ export declare enum AptlyOrganizationInjection {
65
+ Base = "",
66
+ Project = "project",
67
+ Options = "options",
68
+ Products = "products",
69
+ Content = "content",
70
+ Admin = "admin"
71
+ }
72
+ export declare enum AptlyProjectInjection {
73
+ Base = "",
74
+ Options = "options",
75
+ Products = "products",
76
+ Content = "content",
77
+ Project = "project",
78
+ Support = "support",
79
+ Admin = "admin"
80
+ }
81
+ export declare enum AptlyUnitInjection {
82
+ Base = "",
83
+ Options = "options",
84
+ Reports = "reports",
85
+ Support = "support",
86
+ Admin = "admin"
87
+ }
88
+ export type AptlyAppInjectionMenu = `organization-${AptlyOrganizationInjection}` | `project-${AptlyProjectInjection}` | `unit-${AptlyUnitInjection}`;
89
+ export declare enum AptlyAppInjectionType {
90
+ Iframe = "iframe"
91
+ }
92
+ export type AptlyAppMenu = AptlyAppMenuSchema<string, string>;
93
+ export interface AptlyAppMenuSchema<ID, DATE> {
94
+ _id: ID;
95
+ type: AptlyAppInjectionType;
96
+ menu: AptlyAppInjectionMenu[];
97
+ model: AptlyScopes;
98
+ label: string;
99
+ icon?: AptlyMediaSrcSchema<ID, DATE> | null;
100
+ src: string;
101
+ sandbox: AptlyAppSandbox[];
102
+ }