@marteye/studiojs 1.1.30 → 1.1.32
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/index.d.ts +9 -4
- package/dist/index.esm.js +11 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/customers.d.ts +7 -2
- package/dist/resources.d.ts +2 -2
- package/dist/studio.d.ts +2 -2
- package/package.json +1 -1
|
@@ -21,8 +21,13 @@ export interface CreateCustomerPayload {
|
|
|
21
21
|
};
|
|
22
22
|
marteyeUid?: string;
|
|
23
23
|
}
|
|
24
|
+
export interface CustomersListResponse {
|
|
25
|
+
customers: Customer[];
|
|
26
|
+
lastId: string | null;
|
|
27
|
+
hasMore: boolean;
|
|
28
|
+
}
|
|
24
29
|
export default function create(httpClient: HttpClient): {
|
|
25
|
-
list: (marketId: string) => Promise<
|
|
30
|
+
list: (marketId: string, lastId?: string) => Promise<CustomersListResponse>;
|
|
26
31
|
get: (marketId: string, customerId: string) => Promise<Customer>;
|
|
27
32
|
avatar: (marketId: string, customerId: string) => Promise<Customer>;
|
|
28
33
|
create: (marketId: string, customerData: CreateCustomerPayload) => Promise<Customer>;
|
|
@@ -33,6 +38,6 @@ export default function create(httpClient: HttpClient): {
|
|
|
33
38
|
* @returns The customer with the specified account number or null if not found
|
|
34
39
|
*/
|
|
35
40
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<Customer | null>;
|
|
36
|
-
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<Customer>;
|
|
41
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<Customer | null>;
|
|
37
42
|
};
|
|
38
43
|
export type Customers = ReturnType<typeof create>;
|
package/dist/resources.d.ts
CHANGED
|
@@ -163,12 +163,12 @@ export default function resources(httpClient: HttpClient): {
|
|
|
163
163
|
get: (marketId: string, id: string) => Promise<import("./types").TaxRate>;
|
|
164
164
|
};
|
|
165
165
|
customers: {
|
|
166
|
-
list: (marketId: string) => Promise<import("./
|
|
166
|
+
list: (marketId: string, lastId?: string) => Promise<import("./resources/customers").CustomersListResponse>;
|
|
167
167
|
get: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
168
168
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
169
169
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
|
170
170
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<import("./types").Customer | null>;
|
|
171
|
-
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer>;
|
|
171
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer | null>;
|
|
172
172
|
};
|
|
173
173
|
search: {
|
|
174
174
|
query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
|
package/dist/studio.d.ts
CHANGED
|
@@ -172,12 +172,12 @@ export declare function Studio(info?: {
|
|
|
172
172
|
get: (marketId: string, id: string) => Promise<import("./types").TaxRate>;
|
|
173
173
|
};
|
|
174
174
|
customers: {
|
|
175
|
-
list: (marketId: string) => Promise<import("./
|
|
175
|
+
list: (marketId: string, lastId?: string) => Promise<import("./resources/customers").CustomersListResponse>;
|
|
176
176
|
get: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
177
177
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
178
178
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
|
179
179
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<import("./types").Customer | null>;
|
|
180
|
-
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer>;
|
|
180
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer | null>;
|
|
181
181
|
};
|
|
182
182
|
search: {
|
|
183
183
|
query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
|