@compassdigital/sdk.typescript 4.382.0 → 4.384.0
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/lib/index.d.ts +11 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +52 -149
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +25 -1
- package/src/interface/consumer.ts +120 -150
|
@@ -1464,50 +1464,27 @@ export interface ConsumerUserMeta {
|
|
|
1464
1464
|
export interface PostConsumerUserChangePasswordResponse {
|
|
1465
1465
|
id: string;
|
|
1466
1466
|
email: string;
|
|
1467
|
-
name?:
|
|
1468
|
-
|
|
1469
|
-
last?: string;
|
|
1470
|
-
};
|
|
1471
|
-
date?: {
|
|
1472
|
-
created?: string;
|
|
1473
|
-
modified?: string;
|
|
1474
|
-
};
|
|
1467
|
+
name?: Record<string, any>;
|
|
1468
|
+
date?: Record<string, any>;
|
|
1475
1469
|
gender?: Record<string, any>;
|
|
1476
1470
|
meta?: ConsumerUserMeta;
|
|
1477
|
-
is?:
|
|
1478
|
-
locked_out?: boolean;
|
|
1479
|
-
verified?: boolean;
|
|
1480
|
-
};
|
|
1471
|
+
is?: Record<string, any>;
|
|
1481
1472
|
}
|
|
1482
1473
|
export interface ConsumerScopes {
|
|
1483
1474
|
scopes?: string[];
|
|
1484
1475
|
}
|
|
1485
1476
|
export interface PutConsumerUserRequest {
|
|
1486
|
-
id?: string;
|
|
1487
1477
|
email?: string;
|
|
1488
|
-
name?:
|
|
1489
|
-
|
|
1490
|
-
last?: string;
|
|
1491
|
-
};
|
|
1492
|
-
date?: {
|
|
1493
|
-
created?: string;
|
|
1494
|
-
modified?: string;
|
|
1495
|
-
};
|
|
1478
|
+
name?: Record<string, any>;
|
|
1479
|
+
date?: Record<string, any>;
|
|
1496
1480
|
birthday?: string;
|
|
1497
1481
|
password?: string;
|
|
1498
1482
|
phone?: number;
|
|
1499
1483
|
phone_country_code?: string;
|
|
1500
1484
|
realm?: string;
|
|
1501
|
-
gender?:
|
|
1485
|
+
gender?: 'male' | 'female' | 'non-binary';
|
|
1502
1486
|
meta?: ConsumerUserMeta;
|
|
1503
|
-
is?:
|
|
1504
|
-
disabled?: boolean;
|
|
1505
|
-
locked_out?: boolean;
|
|
1506
|
-
verified?: boolean;
|
|
1507
|
-
phone_verified?: boolean;
|
|
1508
|
-
deleted?: boolean;
|
|
1509
|
-
placeholder?: boolean;
|
|
1510
|
-
};
|
|
1487
|
+
is?: Record<string, any>;
|
|
1511
1488
|
permissions?: ConsumerScopes;
|
|
1512
1489
|
location_group?: string;
|
|
1513
1490
|
ssoId?: string;
|
|
@@ -1515,14 +1492,8 @@ export interface PutConsumerUserRequest {
|
|
|
1515
1492
|
export interface PutConsumerUserResponse {
|
|
1516
1493
|
id: string;
|
|
1517
1494
|
email: string;
|
|
1518
|
-
name?:
|
|
1519
|
-
|
|
1520
|
-
last?: string;
|
|
1521
|
-
};
|
|
1522
|
-
date?: {
|
|
1523
|
-
created?: string;
|
|
1524
|
-
modified?: string;
|
|
1525
|
-
};
|
|
1495
|
+
name?: Record<string, any>;
|
|
1496
|
+
date?: Record<string, any>;
|
|
1526
1497
|
birthday?: string;
|
|
1527
1498
|
password?: string;
|
|
1528
1499
|
phone?: number;
|
|
@@ -1530,44 +1501,23 @@ export interface PutConsumerUserResponse {
|
|
|
1530
1501
|
realm?: string;
|
|
1531
1502
|
gender?: Record<string, any>;
|
|
1532
1503
|
meta?: ConsumerUserMeta;
|
|
1533
|
-
is?:
|
|
1534
|
-
disabled?: boolean;
|
|
1535
|
-
locked_out?: boolean;
|
|
1536
|
-
verified?: boolean;
|
|
1537
|
-
phone_verified?: boolean;
|
|
1538
|
-
deleted?: boolean;
|
|
1539
|
-
placeholder?: boolean;
|
|
1540
|
-
};
|
|
1504
|
+
is?: Record<string, any>;
|
|
1541
1505
|
permissions?: ConsumerScopes;
|
|
1542
1506
|
location_group?: string;
|
|
1543
1507
|
ssoId?: string;
|
|
1544
1508
|
}
|
|
1545
1509
|
export interface PatchConsumerUserRequest {
|
|
1546
|
-
id?: string;
|
|
1547
1510
|
email?: string;
|
|
1548
|
-
name?:
|
|
1549
|
-
|
|
1550
|
-
last?: string;
|
|
1551
|
-
};
|
|
1552
|
-
date?: {
|
|
1553
|
-
created?: string;
|
|
1554
|
-
modified?: string;
|
|
1555
|
-
};
|
|
1511
|
+
name?: Record<string, any>;
|
|
1512
|
+
date?: Record<string, any>;
|
|
1556
1513
|
birthday?: string;
|
|
1557
1514
|
password?: string;
|
|
1558
1515
|
phone?: number;
|
|
1559
1516
|
phone_country_code?: string;
|
|
1560
1517
|
realm?: string;
|
|
1561
|
-
gender?:
|
|
1518
|
+
gender?: 'male' | 'female' | 'non-binary';
|
|
1562
1519
|
meta?: ConsumerUserMeta;
|
|
1563
|
-
is?:
|
|
1564
|
-
disabled?: boolean;
|
|
1565
|
-
locked_out?: boolean;
|
|
1566
|
-
verified?: boolean;
|
|
1567
|
-
phone_verified?: boolean;
|
|
1568
|
-
deleted?: boolean;
|
|
1569
|
-
placeholder?: boolean;
|
|
1570
|
-
};
|
|
1520
|
+
is?: Record<string, any>;
|
|
1571
1521
|
permissions?: ConsumerScopes;
|
|
1572
1522
|
location_group?: string;
|
|
1573
1523
|
ssoId?: string;
|
|
@@ -1575,14 +1525,8 @@ export interface PatchConsumerUserRequest {
|
|
|
1575
1525
|
export interface PatchConsumerUserResponse {
|
|
1576
1526
|
id?: string;
|
|
1577
1527
|
email?: string;
|
|
1578
|
-
name?:
|
|
1579
|
-
|
|
1580
|
-
last?: string;
|
|
1581
|
-
};
|
|
1582
|
-
date?: {
|
|
1583
|
-
created?: string;
|
|
1584
|
-
modified?: string;
|
|
1585
|
-
};
|
|
1528
|
+
name?: Record<string, any>;
|
|
1529
|
+
date?: Record<string, any>;
|
|
1586
1530
|
birthday?: string;
|
|
1587
1531
|
password?: string;
|
|
1588
1532
|
phone?: number;
|
|
@@ -1590,14 +1534,7 @@ export interface PatchConsumerUserResponse {
|
|
|
1590
1534
|
realm?: string;
|
|
1591
1535
|
gender?: Record<string, any>;
|
|
1592
1536
|
meta?: ConsumerUserMeta;
|
|
1593
|
-
is?:
|
|
1594
|
-
disabled?: boolean;
|
|
1595
|
-
locked_out?: boolean;
|
|
1596
|
-
verified?: boolean;
|
|
1597
|
-
phone_verified?: boolean;
|
|
1598
|
-
deleted?: boolean;
|
|
1599
|
-
placeholder?: boolean;
|
|
1600
|
-
};
|
|
1537
|
+
is?: Record<string, any>;
|
|
1601
1538
|
permissions?: ConsumerScopes;
|
|
1602
1539
|
location_group?: string;
|
|
1603
1540
|
ssoId?: string;
|
|
@@ -1605,14 +1542,8 @@ export interface PatchConsumerUserResponse {
|
|
|
1605
1542
|
export interface GetConsumerUserResponse {
|
|
1606
1543
|
id: string;
|
|
1607
1544
|
email: string;
|
|
1608
|
-
name?:
|
|
1609
|
-
|
|
1610
|
-
last?: string;
|
|
1611
|
-
};
|
|
1612
|
-
date?: {
|
|
1613
|
-
created?: string;
|
|
1614
|
-
modified?: string;
|
|
1615
|
-
};
|
|
1545
|
+
name?: Record<string, any>;
|
|
1546
|
+
date?: Record<string, any>;
|
|
1616
1547
|
birthday?: string;
|
|
1617
1548
|
password?: string;
|
|
1618
1549
|
phone?: number;
|
|
@@ -1620,18 +1551,20 @@ export interface GetConsumerUserResponse {
|
|
|
1620
1551
|
realm?: string;
|
|
1621
1552
|
gender?: Record<string, any>;
|
|
1622
1553
|
meta?: ConsumerUserMeta;
|
|
1623
|
-
is?:
|
|
1624
|
-
disabled?: boolean;
|
|
1625
|
-
locked_out?: boolean;
|
|
1626
|
-
verified?: boolean;
|
|
1627
|
-
phone_verified?: boolean;
|
|
1628
|
-
deleted?: boolean;
|
|
1629
|
-
placeholder?: boolean;
|
|
1630
|
-
};
|
|
1554
|
+
is?: Record<string, any>;
|
|
1631
1555
|
permissions?: ConsumerScopes;
|
|
1632
1556
|
location_group?: string;
|
|
1633
1557
|
ssoId?: string;
|
|
1634
1558
|
}
|
|
1559
|
+
export interface ConsumerCashlessTender {
|
|
1560
|
+
balance?: number;
|
|
1561
|
+
id?: string;
|
|
1562
|
+
name?: string;
|
|
1563
|
+
type?: 'badge_pay' | 'stipend' | 'voucher' | 'coupon_voucher';
|
|
1564
|
+
}
|
|
1565
|
+
export interface ConsumerGetPaymentCashlessResponse {
|
|
1566
|
+
tenders?: ConsumerCashlessTender[];
|
|
1567
|
+
}
|
|
1635
1568
|
export interface ConsumerGetPaymentClienttokenResponse {
|
|
1636
1569
|
clienttoken?: string;
|
|
1637
1570
|
access_token?: string;
|
|
@@ -2077,13 +2010,6 @@ export interface ConsumerMealExchange {
|
|
|
2077
2010
|
tender?: string;
|
|
2078
2011
|
type?: string;
|
|
2079
2012
|
}
|
|
2080
|
-
export interface ConsumerCashlessTender {
|
|
2081
|
-
id?: string;
|
|
2082
|
-
total?: number;
|
|
2083
|
-
tender?: string;
|
|
2084
|
-
name?: string;
|
|
2085
|
-
type?: string;
|
|
2086
|
-
}
|
|
2087
2013
|
export interface PutConsumerShoppingCartPaymentRequestDto {
|
|
2088
2014
|
email?: string;
|
|
2089
2015
|
mealplan?: ConsumerMealplan;
|
|
@@ -2303,60 +2229,33 @@ export interface PostConsumerUserVerificationResponse {
|
|
|
2303
2229
|
success: boolean;
|
|
2304
2230
|
}
|
|
2305
2231
|
export interface PostConsumerUserCaptchaRequest {
|
|
2306
|
-
id?: string;
|
|
2307
2232
|
email?: string;
|
|
2308
|
-
name?:
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
};
|
|
2312
|
-
date?: {
|
|
2313
|
-
created?: string;
|
|
2314
|
-
modified?: string;
|
|
2315
|
-
};
|
|
2316
|
-
birthday?: string;
|
|
2233
|
+
name?: Record<string, any>;
|
|
2234
|
+
date?: Record<string, any>;
|
|
2235
|
+
birthday: string;
|
|
2317
2236
|
password?: string;
|
|
2318
|
-
phone
|
|
2319
|
-
phone_country_code
|
|
2320
|
-
realm
|
|
2321
|
-
gender
|
|
2322
|
-
meta
|
|
2323
|
-
is?:
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
phone_verified?: boolean;
|
|
2328
|
-
deleted?: boolean;
|
|
2329
|
-
placeholder?: boolean;
|
|
2330
|
-
};
|
|
2331
|
-
permissions?: ConsumerScopes;
|
|
2332
|
-
location_group?: string;
|
|
2333
|
-
ssoId?: string;
|
|
2237
|
+
phone: number;
|
|
2238
|
+
phone_country_code: string;
|
|
2239
|
+
realm: string;
|
|
2240
|
+
gender: 'male' | 'female' | 'non-binary';
|
|
2241
|
+
meta: ConsumerUserMeta;
|
|
2242
|
+
is?: Record<string, any>;
|
|
2243
|
+
permissions: ConsumerScopes;
|
|
2244
|
+
location_group: string;
|
|
2245
|
+
ssoId: string;
|
|
2334
2246
|
}
|
|
2335
2247
|
export interface PostConsumerUserCaptchaResponse {
|
|
2336
2248
|
id: string;
|
|
2337
2249
|
email: string;
|
|
2338
|
-
name?:
|
|
2339
|
-
|
|
2340
|
-
last?: string;
|
|
2341
|
-
};
|
|
2342
|
-
date?: {
|
|
2343
|
-
created?: string;
|
|
2344
|
-
modified?: string;
|
|
2345
|
-
};
|
|
2250
|
+
name?: Record<string, any>;
|
|
2251
|
+
date?: Record<string, any>;
|
|
2346
2252
|
birthday?: string;
|
|
2347
2253
|
phone?: number;
|
|
2348
2254
|
phone_country_code?: string;
|
|
2349
2255
|
realm?: string;
|
|
2350
2256
|
gender?: Record<string, any>;
|
|
2351
2257
|
meta?: ConsumerUserMeta;
|
|
2352
|
-
is?:
|
|
2353
|
-
disabled?: boolean;
|
|
2354
|
-
locked_out?: boolean;
|
|
2355
|
-
verified?: boolean;
|
|
2356
|
-
phone_verified?: boolean;
|
|
2357
|
-
deleted?: boolean;
|
|
2358
|
-
placeholder?: boolean;
|
|
2359
|
-
};
|
|
2258
|
+
is?: Record<string, any>;
|
|
2360
2259
|
permissions?: ConsumerScopes;
|
|
2361
2260
|
location_group?: string;
|
|
2362
2261
|
ssoId?: string;
|
|
@@ -2374,10 +2273,7 @@ export interface PostConsumerUserGuestTokenResponse {
|
|
|
2374
2273
|
export interface PostConsumerUserGuestRequest {
|
|
2375
2274
|
realm: string;
|
|
2376
2275
|
email: string;
|
|
2377
|
-
name:
|
|
2378
|
-
first: string;
|
|
2379
|
-
last: string;
|
|
2380
|
-
};
|
|
2276
|
+
name: Record<string, any>;
|
|
2381
2277
|
}
|
|
2382
2278
|
export interface PostConsumerUserGuestResponse {
|
|
2383
2279
|
token?: string;
|
|
@@ -2561,6 +2457,13 @@ export interface PostConsumerChangePasswordPath {
|
|
|
2561
2457
|
}
|
|
2562
2458
|
export type PostConsumerChangePasswordBody = PostConsumerUserChangePasswordRequest;
|
|
2563
2459
|
export type PostConsumerChangePasswordResponse = PostConsumerUserChangePasswordResponse;
|
|
2460
|
+
export interface GetPaymentCashlessConsumerPath {
|
|
2461
|
+
id: string;
|
|
2462
|
+
}
|
|
2463
|
+
export interface GetPaymentCashlessConsumerQuery {
|
|
2464
|
+
_query?: string;
|
|
2465
|
+
}
|
|
2466
|
+
export type GetPaymentCashlessConsumerResponse = ConsumerGetPaymentCashlessResponse;
|
|
2564
2467
|
export interface GetPaymentClienttokenConsumerPath {
|
|
2565
2468
|
id: string;
|
|
2566
2469
|
}
|