@managesome/eposmatic-toolkit 0.2.303 → 0.2.304

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.
@@ -0,0 +1,61 @@
1
+ export declare enum WALLET_ASSET_TYPE_ENUM {
2
+ VOUCHER = "VOUCHER",
3
+ GIFT_CARD = "GIFT_CARD"
4
+ }
5
+ export declare enum WALLET_ASSIGNMENT_BEHAVIOR_ENUM {
6
+ INCREMENT = "INCREMENT",
7
+ DECREMENT = "DECREMENT",
8
+ ABSOLUTE = "ABSOLUTE"
9
+ }
10
+ export declare enum CUSTOMER_TARGET_MODE_ENUM {
11
+ EXISTING_CUSTOMERS = "EXISTING_CUSTOMERS",
12
+ MANUAL_NUMBERS = "MANUAL_NUMBERS",
13
+ TOP_CUSTOMERS_BY_REVENUE = "TOP_CUSTOMERS_BY_REVENUE",
14
+ TOP_CUSTOMERS_BY_ORDERS = "TOP_CUSTOMERS_BY_ORDERS",
15
+ TOP_DELIVERY_CUSTOMERS_BY_REVENUE = "TOP_DELIVERY_CUSTOMERS_BY_REVENUE",
16
+ TOP_DELIVERY_CUSTOMERS_BY_ORDERS = "TOP_DELIVERY_CUSTOMERS_BY_ORDERS"
17
+ }
18
+ export interface IPreviewTargetCustomersBody {
19
+ mode: CUSTOMER_TARGET_MODE_ENUM;
20
+ search?: string;
21
+ limit?: number;
22
+ phone_numbers?: string[];
23
+ }
24
+ export interface ICustomerWalletPreview {
25
+ phone_number: string;
26
+ display_name: string | null;
27
+ total_orders: number;
28
+ total_spent: number;
29
+ delivery_orders: number;
30
+ delivery_spent: number;
31
+ voucher_total_count: number;
32
+ gift_card_total_count: number;
33
+ voucher_distinct_count: number;
34
+ gift_card_distinct_count: number;
35
+ exists: boolean;
36
+ }
37
+ export interface IPreviewTargetCustomersResponse {
38
+ mode: CUSTOMER_TARGET_MODE_ENUM;
39
+ total: number;
40
+ customers: ICustomerWalletPreview[];
41
+ }
42
+ export interface IAssignWalletAssetsBody {
43
+ behavior: WALLET_ASSIGNMENT_BEHAVIOR_ENUM;
44
+ code_quantities: Record<string, number>;
45
+ phone_numbers: string[];
46
+ auto_create_missing?: boolean;
47
+ }
48
+ export interface IWalletAssignmentFailure {
49
+ phone_number: string;
50
+ reason: string;
51
+ }
52
+ export interface IWalletAssignmentResponse {
53
+ asset_type: WALLET_ASSET_TYPE_ENUM;
54
+ behavior: WALLET_ASSIGNMENT_BEHAVIOR_ENUM;
55
+ code_quantities: Record<string, number>;
56
+ requested_count: number;
57
+ updated_count: number;
58
+ failed_count: number;
59
+ updated_phone_numbers: string[];
60
+ failures: IWalletAssignmentFailure[];
61
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CUSTOMER_TARGET_MODE_ENUM = exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = exports.WALLET_ASSET_TYPE_ENUM = void 0;
4
+ var WALLET_ASSET_TYPE_ENUM;
5
+ (function (WALLET_ASSET_TYPE_ENUM) {
6
+ WALLET_ASSET_TYPE_ENUM["VOUCHER"] = "VOUCHER";
7
+ WALLET_ASSET_TYPE_ENUM["GIFT_CARD"] = "GIFT_CARD";
8
+ })(WALLET_ASSET_TYPE_ENUM || (exports.WALLET_ASSET_TYPE_ENUM = WALLET_ASSET_TYPE_ENUM = {}));
9
+ var WALLET_ASSIGNMENT_BEHAVIOR_ENUM;
10
+ (function (WALLET_ASSIGNMENT_BEHAVIOR_ENUM) {
11
+ WALLET_ASSIGNMENT_BEHAVIOR_ENUM["INCREMENT"] = "INCREMENT";
12
+ WALLET_ASSIGNMENT_BEHAVIOR_ENUM["DECREMENT"] = "DECREMENT";
13
+ WALLET_ASSIGNMENT_BEHAVIOR_ENUM["ABSOLUTE"] = "ABSOLUTE";
14
+ })(WALLET_ASSIGNMENT_BEHAVIOR_ENUM || (exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = WALLET_ASSIGNMENT_BEHAVIOR_ENUM = {}));
15
+ var CUSTOMER_TARGET_MODE_ENUM;
16
+ (function (CUSTOMER_TARGET_MODE_ENUM) {
17
+ CUSTOMER_TARGET_MODE_ENUM["EXISTING_CUSTOMERS"] = "EXISTING_CUSTOMERS";
18
+ CUSTOMER_TARGET_MODE_ENUM["MANUAL_NUMBERS"] = "MANUAL_NUMBERS";
19
+ CUSTOMER_TARGET_MODE_ENUM["TOP_CUSTOMERS_BY_REVENUE"] = "TOP_CUSTOMERS_BY_REVENUE";
20
+ CUSTOMER_TARGET_MODE_ENUM["TOP_CUSTOMERS_BY_ORDERS"] = "TOP_CUSTOMERS_BY_ORDERS";
21
+ CUSTOMER_TARGET_MODE_ENUM["TOP_DELIVERY_CUSTOMERS_BY_REVENUE"] = "TOP_DELIVERY_CUSTOMERS_BY_REVENUE";
22
+ CUSTOMER_TARGET_MODE_ENUM["TOP_DELIVERY_CUSTOMERS_BY_ORDERS"] = "TOP_DELIVERY_CUSTOMERS_BY_ORDERS";
23
+ })(CUSTOMER_TARGET_MODE_ENUM || (exports.CUSTOMER_TARGET_MODE_ENUM = CUSTOMER_TARGET_MODE_ENUM = {}));
@@ -10,6 +10,7 @@ export * from './close_dates';
10
10
  export * from './common';
11
11
  export * from './courses';
12
12
  export * from './customer_redemptions';
13
+ export * from './customer_wallet_assignments';
13
14
  export * from './customers';
14
15
  export * from './deliveries';
15
16
  export * from './delivery_areas';
@@ -26,6 +26,7 @@ __exportStar(require("./close_dates"), exports);
26
26
  __exportStar(require("./common"), exports);
27
27
  __exportStar(require("./courses"), exports);
28
28
  __exportStar(require("./customer_redemptions"), exports);
29
+ __exportStar(require("./customer_wallet_assignments"), exports);
29
30
  __exportStar(require("./customers"), exports);
30
31
  __exportStar(require("./deliveries"), exports);
31
32
  __exportStar(require("./delivery_areas"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.303",
3
+ "version": "0.2.304",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",