@zenglobal/api-client 5.0.0 → 5.0.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.
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/sdk.gen.d.ts +16 -2
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/sdk.gen.js +19 -1
- package/dist/client/sdk.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +68 -6
- package/dist/client/types.gen.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -731,7 +731,7 @@ export type CompulsoryFields = {
|
|
|
731
731
|
* Additional compulsory settings
|
|
732
732
|
*/
|
|
733
733
|
settings?: {
|
|
734
|
-
[key: string]:
|
|
734
|
+
[key: string]: unknown;
|
|
735
735
|
};
|
|
736
736
|
};
|
|
737
737
|
/**
|
|
@@ -1561,7 +1561,7 @@ export type LoyaltyCard = {
|
|
|
1561
1561
|
* Card movement calculation result
|
|
1562
1562
|
*/
|
|
1563
1563
|
cardmovement?: {
|
|
1564
|
-
[key: string]:
|
|
1564
|
+
[key: string]: unknown;
|
|
1565
1565
|
};
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Opted in for mail marketing
|
|
@@ -1913,7 +1913,7 @@ export type LoyaltyCardType = {
|
|
|
1913
1913
|
* Card type settings
|
|
1914
1914
|
*/
|
|
1915
1915
|
settings?: {
|
|
1916
|
-
[key: string]:
|
|
1916
|
+
[key: string]: unknown;
|
|
1917
1917
|
};
|
|
1918
1918
|
};
|
|
1919
1919
|
/**
|
|
@@ -2084,6 +2084,23 @@ export type LoyaltyGroup = {
|
|
|
2084
2084
|
*/
|
|
2085
2085
|
sitelist: Array<string>;
|
|
2086
2086
|
};
|
|
2087
|
+
/**
|
|
2088
|
+
* Loyalty group (v2 format) with clean field names.
|
|
2089
|
+
*/
|
|
2090
|
+
export type LoyaltyGroupV2 = {
|
|
2091
|
+
/**
|
|
2092
|
+
* Unique group identifier (database primary key)
|
|
2093
|
+
*/
|
|
2094
|
+
id: number;
|
|
2095
|
+
/**
|
|
2096
|
+
* Legacy group reference number (GROUPID) — consistent across chains for the same business concept
|
|
2097
|
+
*/
|
|
2098
|
+
reference: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* Group description
|
|
2101
|
+
*/
|
|
2102
|
+
description: string;
|
|
2103
|
+
};
|
|
2087
2104
|
/**
|
|
2088
2105
|
* Simplified loyalty card information returned by search endpoints
|
|
2089
2106
|
*/
|
|
@@ -5146,6 +5163,22 @@ export type SiteSearchResult = {
|
|
|
5146
5163
|
* Whether POS support is enabled
|
|
5147
5164
|
*/
|
|
5148
5165
|
point_of_sale_support: boolean;
|
|
5166
|
+
/**
|
|
5167
|
+
* Site IANA timezone identifier
|
|
5168
|
+
*/
|
|
5169
|
+
timezone: string | null;
|
|
5170
|
+
/**
|
|
5171
|
+
* Date and time of the first sale at this site (UTC, ISO 8601)
|
|
5172
|
+
*/
|
|
5173
|
+
first_sale: string | null;
|
|
5174
|
+
/**
|
|
5175
|
+
* Date and time of the most recent sale at this site (UTC, ISO 8601)
|
|
5176
|
+
*/
|
|
5177
|
+
last_sale: string | null;
|
|
5178
|
+
/**
|
|
5179
|
+
* When Zen last received data from this site (UTC, ISO 8601 with offset)
|
|
5180
|
+
*/
|
|
5181
|
+
last_connected_at: string | null;
|
|
5149
5182
|
};
|
|
5150
5183
|
/**
|
|
5151
5184
|
* Sites endpoint response.
|
|
@@ -6142,7 +6175,7 @@ export type VersionResponse = {
|
|
|
6142
6175
|
* Available API function sections and their allowed methods
|
|
6143
6176
|
*/
|
|
6144
6177
|
functions: {
|
|
6145
|
-
[key: string]:
|
|
6178
|
+
[key: string]: unknown;
|
|
6146
6179
|
};
|
|
6147
6180
|
};
|
|
6148
6181
|
export type Versions = '1.0.0' | '2.0.0';
|
|
@@ -8366,7 +8399,7 @@ export type LoyaltyRenewCardResponses = {
|
|
|
8366
8399
|
result: number;
|
|
8367
8400
|
errormessage: string;
|
|
8368
8401
|
data?: {
|
|
8369
|
-
[key: string]:
|
|
8402
|
+
[key: string]: unknown;
|
|
8370
8403
|
};
|
|
8371
8404
|
};
|
|
8372
8405
|
};
|
|
@@ -8577,7 +8610,7 @@ export type LoyaltyGetGroupsResponses = {
|
|
|
8577
8610
|
*/
|
|
8578
8611
|
200: {
|
|
8579
8612
|
/**
|
|
8580
|
-
* Non-purchase loyalty groups. Also contains version and loyaltyVersion as pseudo-elements.
|
|
8613
|
+
* Non-purchase loyalty groups. Response is a JSON object with numeric string keys (not an array). Also contains version and loyaltyVersion as pseudo-elements.
|
|
8581
8614
|
*/
|
|
8582
8615
|
cardGroups: Array<LoyaltyGroup>;
|
|
8583
8616
|
};
|
|
@@ -10456,6 +10489,35 @@ export type CustomerDeleteResponses = {
|
|
|
10456
10489
|
204: void;
|
|
10457
10490
|
};
|
|
10458
10491
|
export type CustomerDeleteResponse = CustomerDeleteResponses[keyof CustomerDeleteResponses];
|
|
10492
|
+
export type LoyaltyV2GetGroupsData = {
|
|
10493
|
+
body?: never;
|
|
10494
|
+
path?: never;
|
|
10495
|
+
query?: never;
|
|
10496
|
+
url: '/v2/loyalty/groups';
|
|
10497
|
+
};
|
|
10498
|
+
export type LoyaltyV2GetGroupsErrors = {
|
|
10499
|
+
/**
|
|
10500
|
+
* Access is unauthorized.
|
|
10501
|
+
*/
|
|
10502
|
+
401: InvalidAccessKeyError;
|
|
10503
|
+
/**
|
|
10504
|
+
* The server cannot find the requested resource.
|
|
10505
|
+
*/
|
|
10506
|
+
404: ZenNotFoundError;
|
|
10507
|
+
};
|
|
10508
|
+
export type LoyaltyV2GetGroupsError = LoyaltyV2GetGroupsErrors[keyof LoyaltyV2GetGroupsErrors];
|
|
10509
|
+
export type LoyaltyV2GetGroupsResponses = {
|
|
10510
|
+
/**
|
|
10511
|
+
* The request has succeeded.
|
|
10512
|
+
*/
|
|
10513
|
+
200: {
|
|
10514
|
+
/**
|
|
10515
|
+
* Non-purchase loyalty groups
|
|
10516
|
+
*/
|
|
10517
|
+
card_groups: Array<LoyaltyGroupV2>;
|
|
10518
|
+
};
|
|
10519
|
+
};
|
|
10520
|
+
export type LoyaltyV2GetGroupsResponse = LoyaltyV2GetGroupsResponses[keyof LoyaltyV2GetGroupsResponses];
|
|
10459
10521
|
export type PingV2ShowData = {
|
|
10460
10522
|
body?: never;
|
|
10461
10523
|
path?: never;
|