@aptly-as/types 3.0.6 → 3.0.8
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/scope.d.ts +1 -0
- package/core/scope.js +1 -0
- package/enums/index.d.ts +2 -1
- package/enums/index.js +1 -0
- package/models/offer.d.ts +3 -2
- package/models/product.d.ts +1 -0
- package/package.json +1 -1
package/core/scope.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare enum AptlyScopes {
|
|
|
45
45
|
OrganizationDepartments = "organizationDepartments",
|
|
46
46
|
OrganizationLogo = "organizationLogo",
|
|
47
47
|
OrganizationMembers = "organizationMembers",
|
|
48
|
+
OrganizationOffers = "organizationOffers",
|
|
48
49
|
OrganizationOptions = "organizationOptions",
|
|
49
50
|
OrganizationOptionLabels = "organizationOptionLabels",
|
|
50
51
|
OrganizationOrders = "organizationOrders",
|
package/core/scope.js
CHANGED
|
@@ -47,6 +47,7 @@ export var AptlyScopes;
|
|
|
47
47
|
AptlyScopes["OrganizationDepartments"] = "organizationDepartments";
|
|
48
48
|
AptlyScopes["OrganizationLogo"] = "organizationLogo";
|
|
49
49
|
AptlyScopes["OrganizationMembers"] = "organizationMembers";
|
|
50
|
+
AptlyScopes["OrganizationOffers"] = "organizationOffers";
|
|
50
51
|
AptlyScopes["OrganizationOptions"] = "organizationOptions";
|
|
51
52
|
AptlyScopes["OrganizationOptionLabels"] = "organizationOptionLabels";
|
|
52
53
|
AptlyScopes["OrganizationOrders"] = "organizationOrders";
|
package/enums/index.d.ts
CHANGED
package/enums/index.js
CHANGED
|
@@ -140,6 +140,7 @@ export var AptlyOrganizationStatus;
|
|
|
140
140
|
AptlyOrganizationStatus[AptlyOrganizationStatus["Inactive"] = 2] = "Inactive";
|
|
141
141
|
AptlyOrganizationStatus[AptlyOrganizationStatus["Paused"] = 3] = "Paused";
|
|
142
142
|
AptlyOrganizationStatus[AptlyOrganizationStatus["Closed"] = 4] = "Closed";
|
|
143
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["Template"] = 5] = "Template";
|
|
143
144
|
})(AptlyOrganizationStatus || (AptlyOrganizationStatus = {}));
|
|
144
145
|
export var AptlyEmailType;
|
|
145
146
|
(function (AptlyEmailType) {
|
package/models/offer.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface AptlyOfferSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, O
|
|
|
17
17
|
unit: ID | AptlyUnitSchema<ID, DATE> | null;
|
|
18
18
|
order: ID | AptlyOrderSchema<ID, DATE> | null;
|
|
19
19
|
document: ID | AptlyDocumentSchema<ID, DATE> | null;
|
|
20
|
-
createdBy: ID | AptlyUserSchema<ID, DATE
|
|
20
|
+
createdBy: ID | AptlyUserSchema<ID, DATE> | null;
|
|
21
21
|
expiresAt: DATE | null;
|
|
22
22
|
sentAt: DATE | null;
|
|
23
23
|
number?: number;
|
|
@@ -41,13 +41,14 @@ export interface AptlyOfferItemSchema<ID, DATE> {
|
|
|
41
41
|
algorithm: ID | null;
|
|
42
42
|
note: string;
|
|
43
43
|
createdAt?: DATE;
|
|
44
|
+
order: number;
|
|
44
45
|
}
|
|
45
46
|
export type AptlyUserOffer = AptlyUserOfferSchema<string, string>;
|
|
46
47
|
export interface AptlyUserOfferSchema<ID, DATE> extends Omit<AptlyOfferSchema<ID, DATE>, 'amount' | 'items'> {
|
|
47
48
|
options: AptlyOptionPopulatedSchema<ID, DATE>[];
|
|
48
49
|
picks?: AptlyPickSchema<ID, DATE>[];
|
|
49
50
|
}
|
|
50
|
-
export interface AptlyOfferSendBody extends Omit<AptlyCustomer, 'user'> {
|
|
51
|
+
export interface AptlyOfferSendBody extends Omit<AptlyCustomer, 'fullName' | 'user'> {
|
|
51
52
|
unit: string | null;
|
|
52
53
|
copy?: boolean;
|
|
53
54
|
address?: AptlySearchAddress | null;
|
package/models/product.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
|
|
|
13
13
|
productNumber: string;
|
|
14
14
|
itemNumber?: string;
|
|
15
15
|
eanNumber?: string;
|
|
16
|
+
gtin?: string;
|
|
16
17
|
description: string;
|
|
17
18
|
images: AptlyProductImageSchema<ID, DATE>[];
|
|
18
19
|
variants: AptlyProductVariantSchema<ID, DATE>[];
|