@marteye/studiojs 1.1.31 → 1.1.33
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 +10 -2
- package/dist/index.esm.js +9 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/resources/customers.d.ts +6 -1
- package/dist/resources/sales.d.ts +1 -0
- package/dist/resources.d.ts +2 -1
- package/dist/studio.d.ts +2 -1
- package/dist/types.d.ts +1 -0
- 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>;
|
package/dist/resources.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export default function resources(httpClient: HttpClient): {
|
|
|
67
67
|
pin?: boolean;
|
|
68
68
|
cascade?: boolean;
|
|
69
69
|
reportEmail?: string;
|
|
70
|
+
queueLots?: boolean;
|
|
70
71
|
} | null;
|
|
71
72
|
}) => Promise<import("./types").Sale>;
|
|
72
73
|
};
|
|
@@ -163,7 +164,7 @@ export default function resources(httpClient: HttpClient): {
|
|
|
163
164
|
get: (marketId: string, id: string) => Promise<import("./types").TaxRate>;
|
|
164
165
|
};
|
|
165
166
|
customers: {
|
|
166
|
-
list: (marketId: string) => Promise<import("./
|
|
167
|
+
list: (marketId: string, lastId?: string) => Promise<import("./resources/customers").CustomersListResponse>;
|
|
167
168
|
get: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
168
169
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
169
170
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
package/dist/studio.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare function Studio(info?: {
|
|
|
76
76
|
pin?: boolean;
|
|
77
77
|
cascade?: boolean;
|
|
78
78
|
reportEmail?: string;
|
|
79
|
+
queueLots?: boolean;
|
|
79
80
|
} | null;
|
|
80
81
|
}) => Promise<import("./types").Sale>;
|
|
81
82
|
};
|
|
@@ -172,7 +173,7 @@ export declare function Studio(info?: {
|
|
|
172
173
|
get: (marketId: string, id: string) => Promise<import("./types").TaxRate>;
|
|
173
174
|
};
|
|
174
175
|
customers: {
|
|
175
|
-
list: (marketId: string) => Promise<import("./
|
|
176
|
+
list: (marketId: string, lastId?: string) => Promise<import("./resources/customers").CustomersListResponse>;
|
|
176
177
|
get: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
177
178
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
178
179
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
package/dist/types.d.ts
CHANGED