@compassdigital/sdk.typescript 3.59.0 → 3.61.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 +169 -453
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +164 -470
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +4 -1
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1214 -593
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +0 -3
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/user.d.ts +9 -24
- package/lib/interface/user.d.ts.map +1 -1
- package/manifest.json +2 -10
- package/package.json +1 -1
- package/src/index.ts +484 -1265
- package/src/interface/location.ts +4 -1
- package/src/interface/menu.ts +1438 -816
- package/src/interface/order.ts +0 -4
- package/src/interface/user.ts +15 -44
- package/lib/interface/loyalty.d.ts +0 -372
- package/lib/interface/loyalty.d.ts.map +0 -1
- package/lib/interface/loyalty.js +0 -5
- package/lib/interface/loyalty.js.map +0 -1
- package/lib/interface/permission.d.ts +0 -148
- package/lib/interface/permission.d.ts.map +0 -1
- package/lib/interface/permission.js +0 -5
- package/lib/interface/permission.js.map +0 -1
- package/lib/interface/sms.d.ts +0 -2
- package/lib/interface/sms.d.ts.map +0 -1
- package/lib/interface/sms.js +0 -5
- package/lib/interface/sms.js.map +0 -1
- package/src/interface/loyalty.ts +0 -615
- package/src/interface/permission.ts +0 -256
- package/src/interface/sms.ts +0 -4
package/lib/index.js
CHANGED
|
@@ -1867,26 +1867,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1867
1867
|
put_user_verify_user_email(id, body, options) {
|
|
1868
1868
|
return this.request("user", "put_user_verify_user_email", "put", `/user/${id}/verification/confirm`, body, options);
|
|
1869
1869
|
}
|
|
1870
|
-
/**
|
|
1871
|
-
* POST /user/{id}/verification/phone - Send phone verification to user
|
|
1872
|
-
*
|
|
1873
|
-
* @param id - realm
|
|
1874
|
-
* @param body - User phone number to be verified
|
|
1875
|
-
* @param options - additional request options
|
|
1876
|
-
*/
|
|
1877
|
-
post_user_verification_phone(id, body, options) {
|
|
1878
|
-
return this.request("user", "post_user_verification_phone", "post", `/user/${id}/verification/phone`, body, options);
|
|
1879
|
-
}
|
|
1880
|
-
/**
|
|
1881
|
-
* PUT /user/{id}/verification/phone - Attempt phone verification for user
|
|
1882
|
-
*
|
|
1883
|
-
* @param id - realm
|
|
1884
|
-
* @param body
|
|
1885
|
-
* @param options - additional request options
|
|
1886
|
-
*/
|
|
1887
|
-
put_user_verification_phone(id, body, options) {
|
|
1888
|
-
return this.request("user", "put_user_verification_phone", "put", `/user/${id}/verification/phone`, body, options);
|
|
1889
|
-
}
|
|
1890
1870
|
/**
|
|
1891
1871
|
* POST /user/guest - Creates a guest user
|
|
1892
1872
|
*
|
|
@@ -1905,6 +1885,15 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1905
1885
|
post_user_guest_token(body, options) {
|
|
1906
1886
|
return this.request("user", "post_user_guest_token", "post", `/user/guest/token`, body, options);
|
|
1907
1887
|
}
|
|
1888
|
+
/**
|
|
1889
|
+
* POST /user/looker/embedurl - Create looker embed url
|
|
1890
|
+
*
|
|
1891
|
+
* @param body
|
|
1892
|
+
* @param options - additional request options
|
|
1893
|
+
*/
|
|
1894
|
+
post_user_embedurl(body, options) {
|
|
1895
|
+
return this.request("user", "post_user_embedurl", "post", `/user/looker/embedurl`, body, options);
|
|
1896
|
+
}
|
|
1908
1897
|
/**
|
|
1909
1898
|
* GET /calendar/{id}
|
|
1910
1899
|
*
|
|
@@ -2242,104 +2231,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2242
2231
|
post_menu_partial_group_item_options(id, group_id, body, options) {
|
|
2243
2232
|
return this.request("menu", "post_menu_partial_group_item_options", "post", `/menu/partial/${id}/group/${group_id}/item/options`, body, options);
|
|
2244
2233
|
}
|
|
2245
|
-
/**
|
|
2246
|
-
* POST /menu/v3/draft/station
|
|
2247
|
-
*
|
|
2248
|
-
* @param body
|
|
2249
|
-
* @param options - additional request options
|
|
2250
|
-
*/
|
|
2251
|
-
post_menu_v3_draft_station(body, options) {
|
|
2252
|
-
return this.request("menu", "post_menu_v3_draft_station", "post", `/menu/v3/draft/station`, body, options);
|
|
2253
|
-
}
|
|
2254
|
-
/**
|
|
2255
|
-
* GET /menu/v3/draft/station/{id}
|
|
2256
|
-
*
|
|
2257
|
-
* @param id
|
|
2258
|
-
* @param options - additional request options
|
|
2259
|
-
*/
|
|
2260
|
-
get_menu_v3_draft_station(id, options) {
|
|
2261
|
-
return this.request("menu", "get_menu_v3_draft_station", "get", `/menu/v3/draft/station/${id}`, null, options);
|
|
2262
|
-
}
|
|
2263
|
-
/**
|
|
2264
|
-
* PATCH /menu/v3/draft/station/{id}
|
|
2265
|
-
*
|
|
2266
|
-
* @param id
|
|
2267
|
-
* @param body - A partially populated StationEntity
|
|
2268
|
-
* @param options - additional request options
|
|
2269
|
-
*/
|
|
2270
|
-
patch_menu_v3_draft_station(id, body, options) {
|
|
2271
|
-
return this.request("menu", "patch_menu_v3_draft_station", "patch", `/menu/v3/draft/station/${id}`, body, options);
|
|
2272
|
-
}
|
|
2273
|
-
/**
|
|
2274
|
-
* DELETE /menu/v3/draft/station/{id}
|
|
2275
|
-
*
|
|
2276
|
-
* @param id
|
|
2277
|
-
* @param options - additional request options
|
|
2278
|
-
*/
|
|
2279
|
-
delete_menu_v3_draft_station(id, options) {
|
|
2280
|
-
return this.request("menu", "delete_menu_v3_draft_station", "delete", `/menu/v3/draft/station/${id}`, null, options);
|
|
2281
|
-
}
|
|
2282
|
-
/**
|
|
2283
|
-
* GET /menu/v3/draft/stations
|
|
2284
|
-
*
|
|
2285
|
-
* @param options - additional request options
|
|
2286
|
-
*/
|
|
2287
|
-
get_menu_v3_draft_stations(options) {
|
|
2288
|
-
return this.request("menu", "get_menu_v3_draft_stations", "get", `/menu/v3/draft/stations`, null, options);
|
|
2289
|
-
}
|
|
2290
|
-
/**
|
|
2291
|
-
* POST /menu/v3/draft/stations
|
|
2292
|
-
*
|
|
2293
|
-
* @param body
|
|
2294
|
-
* @param options - additional request options
|
|
2295
|
-
*/
|
|
2296
|
-
post_menu_v3_draft_stations(body, options) {
|
|
2297
|
-
return this.request("menu", "post_menu_v3_draft_stations", "post", `/menu/v3/draft/stations`, body, options);
|
|
2298
|
-
}
|
|
2299
|
-
/**
|
|
2300
|
-
* GET /menu/v3/draft/stations/count
|
|
2301
|
-
*
|
|
2302
|
-
* @param options - additional request options
|
|
2303
|
-
*/
|
|
2304
|
-
get_menu_v3_draft_stations_count(options) {
|
|
2305
|
-
return this.request("menu", "get_menu_v3_draft_stations_count", "get", `/menu/v3/draft/stations/count`, null, options);
|
|
2306
|
-
}
|
|
2307
|
-
/**
|
|
2308
|
-
* GET /menu/v3/draft/station/{id}/modifiers
|
|
2309
|
-
*
|
|
2310
|
-
* @param id
|
|
2311
|
-
* @param options - additional request options
|
|
2312
|
-
*/
|
|
2313
|
-
get_menu_v3_draft_station_modifiers(id, options) {
|
|
2314
|
-
return this.request("menu", "get_menu_v3_draft_station_modifiers", "get", `/menu/v3/draft/station/${id}/modifiers`, null, options);
|
|
2315
|
-
}
|
|
2316
|
-
/**
|
|
2317
|
-
* GET /menu/v3/draft/station/{id}/modifier_groups
|
|
2318
|
-
*
|
|
2319
|
-
* @param id
|
|
2320
|
-
* @param options - additional request options
|
|
2321
|
-
*/
|
|
2322
|
-
get_menu_v3_draft_station_modifier_groups(id, options) {
|
|
2323
|
-
return this.request("menu", "get_menu_v3_draft_station_modifier_groups", "get", `/menu/v3/draft/station/${id}/modifier_groups`, null, options);
|
|
2324
|
-
}
|
|
2325
|
-
/**
|
|
2326
|
-
* GET /menu/v3/draft/station/{id}/items
|
|
2327
|
-
*
|
|
2328
|
-
* @param id
|
|
2329
|
-
* @param options - additional request options
|
|
2330
|
-
*/
|
|
2331
|
-
get_menu_v3_draft_station_items(id, options) {
|
|
2332
|
-
return this.request("menu", "get_menu_v3_draft_station_items", "get", `/menu/v3/draft/station/${id}/items`, null, options);
|
|
2333
|
-
}
|
|
2334
|
-
/**
|
|
2335
|
-
* GET /menu/v3/draft/site/{id}/layouts
|
|
2336
|
-
*
|
|
2337
|
-
* @param id
|
|
2338
|
-
* @param options - additional request options
|
|
2339
|
-
*/
|
|
2340
|
-
get_menu_v3_draft_site_layouts(id, options) {
|
|
2341
|
-
return this.request("menu", "get_menu_v3_draft_site_layouts", "get", `/menu/v3/draft/site/${id}/layouts`, null, options);
|
|
2342
|
-
}
|
|
2343
2234
|
/**
|
|
2344
2235
|
* POST /menu/v3/local-menu-group
|
|
2345
2236
|
*
|
|
@@ -2439,84 +2330,84 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2439
2330
|
return this.request("menu", "post_menu_v3_local_menu_group_import_brands", "post", `/menu/v3/local-menu-group/${id}/import-brands`, null, options);
|
|
2440
2331
|
}
|
|
2441
2332
|
/**
|
|
2442
|
-
* POST /menu/v3/
|
|
2333
|
+
* POST /menu/v3/global-menu-group
|
|
2443
2334
|
*
|
|
2444
2335
|
* @param body
|
|
2445
2336
|
* @param options - additional request options
|
|
2446
2337
|
*/
|
|
2447
|
-
|
|
2448
|
-
return this.request("menu", "
|
|
2338
|
+
post_menu_v3_global_menu_group(body, options) {
|
|
2339
|
+
return this.request("menu", "post_menu_v3_global_menu_group", "post", `/menu/v3/global-menu-group`, body, options);
|
|
2449
2340
|
}
|
|
2450
2341
|
/**
|
|
2451
|
-
* GET /menu/v3/
|
|
2342
|
+
* GET /menu/v3/global-menu-group/{id}
|
|
2452
2343
|
*
|
|
2453
2344
|
* @param id
|
|
2454
2345
|
* @param options - additional request options
|
|
2455
2346
|
*/
|
|
2456
|
-
|
|
2457
|
-
return this.request("menu", "
|
|
2347
|
+
get_menu_v3_global_menu_group(id, options) {
|
|
2348
|
+
return this.request("menu", "get_menu_v3_global_menu_group", "get", `/menu/v3/global-menu-group/${id}`, null, options);
|
|
2458
2349
|
}
|
|
2459
2350
|
/**
|
|
2460
|
-
* PATCH /menu/v3/
|
|
2351
|
+
* PATCH /menu/v3/global-menu-group/{id}
|
|
2461
2352
|
*
|
|
2462
2353
|
* @param id
|
|
2463
|
-
* @param body - A partially populated
|
|
2354
|
+
* @param body - A partially populated GlobalMenuGroupEntity
|
|
2464
2355
|
* @param options - additional request options
|
|
2465
2356
|
*/
|
|
2466
|
-
|
|
2467
|
-
return this.request("menu", "
|
|
2357
|
+
patch_menu_v3_global_menu_group(id, body, options) {
|
|
2358
|
+
return this.request("menu", "patch_menu_v3_global_menu_group", "patch", `/menu/v3/global-menu-group/${id}`, body, options);
|
|
2468
2359
|
}
|
|
2469
2360
|
/**
|
|
2470
|
-
* DELETE /menu/v3/
|
|
2361
|
+
* DELETE /menu/v3/global-menu-group/{id}
|
|
2471
2362
|
*
|
|
2472
2363
|
* @param id
|
|
2473
2364
|
* @param options - additional request options
|
|
2474
2365
|
*/
|
|
2475
|
-
|
|
2476
|
-
return this.request("menu", "
|
|
2366
|
+
delete_menu_v3_global_menu_group(id, options) {
|
|
2367
|
+
return this.request("menu", "delete_menu_v3_global_menu_group", "delete", `/menu/v3/global-menu-group/${id}`, null, options);
|
|
2477
2368
|
}
|
|
2478
2369
|
/**
|
|
2479
|
-
* GET /menu/v3/
|
|
2370
|
+
* GET /menu/v3/global-menu-groups
|
|
2480
2371
|
*
|
|
2481
2372
|
* @param options - additional request options
|
|
2482
2373
|
*/
|
|
2483
|
-
|
|
2484
|
-
return this.request("menu", "
|
|
2374
|
+
get_menu_v3_global_menu_groups(options) {
|
|
2375
|
+
return this.request("menu", "get_menu_v3_global_menu_groups", "get", `/menu/v3/global-menu-groups`, null, options);
|
|
2485
2376
|
}
|
|
2486
2377
|
/**
|
|
2487
|
-
* POST /menu/v3/
|
|
2378
|
+
* POST /menu/v3/global-menu-groups
|
|
2488
2379
|
*
|
|
2489
2380
|
* @param body
|
|
2490
2381
|
* @param options - additional request options
|
|
2491
2382
|
*/
|
|
2492
|
-
|
|
2493
|
-
return this.request("menu", "
|
|
2383
|
+
post_menu_v3_global_menu_groups(body, options) {
|
|
2384
|
+
return this.request("menu", "post_menu_v3_global_menu_groups", "post", `/menu/v3/global-menu-groups`, body, options);
|
|
2494
2385
|
}
|
|
2495
2386
|
/**
|
|
2496
|
-
* GET /menu/v3/
|
|
2387
|
+
* GET /menu/v3/global-menu-groups/count
|
|
2497
2388
|
*
|
|
2498
2389
|
* @param options - additional request options
|
|
2499
2390
|
*/
|
|
2500
|
-
|
|
2501
|
-
return this.request("menu", "
|
|
2391
|
+
get_menu_v3_global_menu_groups_count(options) {
|
|
2392
|
+
return this.request("menu", "get_menu_v3_global_menu_groups_count", "get", `/menu/v3/global-menu-groups/count`, null, options);
|
|
2502
2393
|
}
|
|
2503
2394
|
/**
|
|
2504
|
-
* GET /menu/v3/draft/
|
|
2395
|
+
* GET /menu/v3/draft/global-menu-group/{id}/brands
|
|
2505
2396
|
*
|
|
2506
2397
|
* @param id
|
|
2507
2398
|
* @param options - additional request options
|
|
2508
2399
|
*/
|
|
2509
|
-
|
|
2510
|
-
return this.request("menu", "
|
|
2400
|
+
get_menu_v3_draft_global_menu_group_brands(id, options) {
|
|
2401
|
+
return this.request("menu", "get_menu_v3_draft_global_menu_group_brands", "get", `/menu/v3/draft/global-menu-group/${id}/brands`, null, options);
|
|
2511
2402
|
}
|
|
2512
2403
|
/**
|
|
2513
|
-
* GET /menu/v3/
|
|
2404
|
+
* GET /menu/v3/global-menu-group/{id}/brands
|
|
2514
2405
|
*
|
|
2515
2406
|
* @param id
|
|
2516
2407
|
* @param options - additional request options
|
|
2517
2408
|
*/
|
|
2518
|
-
|
|
2519
|
-
return this.request("menu", "
|
|
2409
|
+
get_menu_v3_global_menu_group_brands(id, options) {
|
|
2410
|
+
return this.request("menu", "get_menu_v3_global_menu_group_brands", "get", `/menu/v3/global-menu-group/${id}/brands`, null, options);
|
|
2520
2411
|
}
|
|
2521
2412
|
/**
|
|
2522
2413
|
* POST /menu/v3/draft/brand
|
|
@@ -2581,13 +2472,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2581
2472
|
return this.request("menu", "get_menu_v3_draft_brands_count", "get", `/menu/v3/draft/brands/count`, null, options);
|
|
2582
2473
|
}
|
|
2583
2474
|
/**
|
|
2584
|
-
* GET /menu/v3/draft/brand/{id}/
|
|
2475
|
+
* GET /menu/v3/draft/brand/{id}/menus
|
|
2585
2476
|
*
|
|
2586
2477
|
* @param id
|
|
2587
2478
|
* @param options - additional request options
|
|
2588
2479
|
*/
|
|
2589
|
-
|
|
2590
|
-
return this.request("menu", "
|
|
2480
|
+
get_menu_v3_draft_brand_menus(id, options) {
|
|
2481
|
+
return this.request("menu", "get_menu_v3_draft_brand_menus", "get", `/menu/v3/draft/brand/${id}/menus`, null, options);
|
|
2591
2482
|
}
|
|
2592
2483
|
/**
|
|
2593
2484
|
* GET /menu/v3/draft/brand/{id}/modifiers
|
|
@@ -2616,6 +2507,24 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2616
2507
|
get_menu_v3_draft_brand_items(id, options) {
|
|
2617
2508
|
return this.request("menu", "get_menu_v3_draft_brand_items", "get", `/menu/v3/draft/brand/${id}/items`, null, options);
|
|
2618
2509
|
}
|
|
2510
|
+
/**
|
|
2511
|
+
* GET /menu/v3/draft/brand/{id}/items/reporting/categories
|
|
2512
|
+
*
|
|
2513
|
+
* @param id
|
|
2514
|
+
* @param options - additional request options
|
|
2515
|
+
*/
|
|
2516
|
+
get_menu_v3_draft_brand_items_reporting_categories(id, options) {
|
|
2517
|
+
return this.request("menu", "get_menu_v3_draft_brand_items_reporting_categories", "get", `/menu/v3/draft/brand/${id}/items/reporting/categories`, null, options);
|
|
2518
|
+
}
|
|
2519
|
+
/**
|
|
2520
|
+
* GET /menu/v3/draft/brand/{id}/modifiers/reporting/categories
|
|
2521
|
+
*
|
|
2522
|
+
* @param id
|
|
2523
|
+
* @param options - additional request options
|
|
2524
|
+
*/
|
|
2525
|
+
get_menu_v3_draft_brand_modifiers_reporting_categories(id, options) {
|
|
2526
|
+
return this.request("menu", "get_menu_v3_draft_brand_modifiers_reporting_categories", "get", `/menu/v3/draft/brand/${id}/modifiers/reporting/categories`, null, options);
|
|
2527
|
+
}
|
|
2619
2528
|
/**
|
|
2620
2529
|
* POST /menu/v3/draft/brand/{id}/publish
|
|
2621
2530
|
*
|
|
@@ -2625,6 +2534,33 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2625
2534
|
post_menu_v3_draft_brand_publish(id, options) {
|
|
2626
2535
|
return this.request("menu", "post_menu_v3_draft_brand_publish", "post", `/menu/v3/draft/brand/${id}/publish`, null, options);
|
|
2627
2536
|
}
|
|
2537
|
+
/**
|
|
2538
|
+
* POST /menu/v3/draft/brand/{id}/diff/generate
|
|
2539
|
+
*
|
|
2540
|
+
* @param id
|
|
2541
|
+
* @param options - additional request options
|
|
2542
|
+
*/
|
|
2543
|
+
post_menu_v3_draft_brand_diff_generate(id, options) {
|
|
2544
|
+
return this.request("menu", "post_menu_v3_draft_brand_diff_generate", "post", `/menu/v3/draft/brand/${id}/diff/generate`, null, options);
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* GET /menu/v3/draft/brand/{id}/diffs
|
|
2548
|
+
*
|
|
2549
|
+
* @param id
|
|
2550
|
+
* @param options - additional request options
|
|
2551
|
+
*/
|
|
2552
|
+
get_menu_v3_draft_brand_diffs(id, options) {
|
|
2553
|
+
return this.request("menu", "get_menu_v3_draft_brand_diffs", "get", `/menu/v3/draft/brand/${id}/diffs`, null, options);
|
|
2554
|
+
}
|
|
2555
|
+
/**
|
|
2556
|
+
* POST /menu/v3/draft/brand/{id}/global-diffs/apply
|
|
2557
|
+
*
|
|
2558
|
+
* @param id
|
|
2559
|
+
* @param options - additional request options
|
|
2560
|
+
*/
|
|
2561
|
+
post_menu_v3_draft_brand_global_diffs_apply(id, options) {
|
|
2562
|
+
return this.request("menu", "post_menu_v3_draft_brand_global_diffs_apply", "post", `/menu/v3/draft/brand/${id}/global-diffs/apply`, null, options);
|
|
2563
|
+
}
|
|
2628
2564
|
/**
|
|
2629
2565
|
* POST /menu/v3/brand/{id}/attachment/{name}
|
|
2630
2566
|
*
|
|
@@ -2698,13 +2634,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2698
2634
|
return this.request("menu", "get_menu_v3_brands_count", "get", `/menu/v3/brands/count`, null, options);
|
|
2699
2635
|
}
|
|
2700
2636
|
/**
|
|
2701
|
-
* GET /menu/v3/brand/{id}/
|
|
2637
|
+
* GET /menu/v3/brand/{id}/menus
|
|
2702
2638
|
*
|
|
2703
2639
|
* @param id
|
|
2704
2640
|
* @param options - additional request options
|
|
2705
2641
|
*/
|
|
2706
|
-
|
|
2707
|
-
return this.request("menu", "
|
|
2642
|
+
get_menu_v3_brand_menus(id, options) {
|
|
2643
|
+
return this.request("menu", "get_menu_v3_brand_menus", "get", `/menu/v3/brand/${id}/menus`, null, options);
|
|
2708
2644
|
}
|
|
2709
2645
|
/**
|
|
2710
2646
|
* GET /menu/v3/brand/{id}/modifiers
|
|
@@ -2743,118 +2679,118 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2743
2679
|
return this.request("menu", "post_menu_v3_brand_local", "post", `/menu/v3/brand/${id}/local`, null, options);
|
|
2744
2680
|
}
|
|
2745
2681
|
/**
|
|
2746
|
-
* POST /menu/v3/draft/
|
|
2682
|
+
* POST /menu/v3/draft/menu
|
|
2747
2683
|
*
|
|
2748
2684
|
* @param body
|
|
2749
2685
|
* @param options - additional request options
|
|
2750
2686
|
*/
|
|
2751
|
-
|
|
2752
|
-
return this.request("menu", "
|
|
2687
|
+
post_menu_v3_draft_menu(body, options) {
|
|
2688
|
+
return this.request("menu", "post_menu_v3_draft_menu", "post", `/menu/v3/draft/menu`, body, options);
|
|
2753
2689
|
}
|
|
2754
2690
|
/**
|
|
2755
|
-
* GET /menu/v3/draft/
|
|
2691
|
+
* GET /menu/v3/draft/menu/{id}
|
|
2756
2692
|
*
|
|
2757
2693
|
* @param id
|
|
2758
2694
|
* @param options - additional request options
|
|
2759
2695
|
*/
|
|
2760
|
-
|
|
2761
|
-
return this.request("menu", "
|
|
2696
|
+
get_menu_v3_draft_menu(id, options) {
|
|
2697
|
+
return this.request("menu", "get_menu_v3_draft_menu", "get", `/menu/v3/draft/menu/${id}`, null, options);
|
|
2762
2698
|
}
|
|
2763
2699
|
/**
|
|
2764
|
-
* PATCH /menu/v3/draft/
|
|
2700
|
+
* PATCH /menu/v3/draft/menu/{id}
|
|
2765
2701
|
*
|
|
2766
2702
|
* @param id
|
|
2767
|
-
* @param body - A partially populated
|
|
2703
|
+
* @param body - A partially populated DraftMenuEntity
|
|
2768
2704
|
* @param options - additional request options
|
|
2769
2705
|
*/
|
|
2770
|
-
|
|
2771
|
-
return this.request("menu", "
|
|
2706
|
+
patch_menu_v3_draft_menu(id, body, options) {
|
|
2707
|
+
return this.request("menu", "patch_menu_v3_draft_menu", "patch", `/menu/v3/draft/menu/${id}`, body, options);
|
|
2772
2708
|
}
|
|
2773
2709
|
/**
|
|
2774
|
-
* DELETE /menu/v3/draft/
|
|
2710
|
+
* DELETE /menu/v3/draft/menu/{id}
|
|
2775
2711
|
*
|
|
2776
2712
|
* @param id
|
|
2777
2713
|
* @param options - additional request options
|
|
2778
2714
|
*/
|
|
2779
|
-
|
|
2780
|
-
return this.request("menu", "
|
|
2715
|
+
delete_menu_v3_draft_menu(id, options) {
|
|
2716
|
+
return this.request("menu", "delete_menu_v3_draft_menu", "delete", `/menu/v3/draft/menu/${id}`, null, options);
|
|
2781
2717
|
}
|
|
2782
2718
|
/**
|
|
2783
|
-
* GET /menu/v3/draft/
|
|
2719
|
+
* GET /menu/v3/draft/menus
|
|
2784
2720
|
*
|
|
2785
2721
|
* @param options - additional request options
|
|
2786
2722
|
*/
|
|
2787
|
-
|
|
2788
|
-
return this.request("menu", "
|
|
2723
|
+
get_menu_v3_draft_menus(options) {
|
|
2724
|
+
return this.request("menu", "get_menu_v3_draft_menus", "get", `/menu/v3/draft/menus`, null, options);
|
|
2789
2725
|
}
|
|
2790
2726
|
/**
|
|
2791
|
-
* POST /menu/v3/draft/
|
|
2727
|
+
* POST /menu/v3/draft/menus
|
|
2792
2728
|
*
|
|
2793
2729
|
* @param body
|
|
2794
2730
|
* @param options - additional request options
|
|
2795
2731
|
*/
|
|
2796
|
-
|
|
2797
|
-
return this.request("menu", "
|
|
2732
|
+
post_menu_v3_draft_menus(body, options) {
|
|
2733
|
+
return this.request("menu", "post_menu_v3_draft_menus", "post", `/menu/v3/draft/menus`, body, options);
|
|
2798
2734
|
}
|
|
2799
2735
|
/**
|
|
2800
|
-
* GET /menu/v3/draft/
|
|
2736
|
+
* GET /menu/v3/draft/menus/count
|
|
2801
2737
|
*
|
|
2802
2738
|
* @param options - additional request options
|
|
2803
2739
|
*/
|
|
2804
|
-
|
|
2805
|
-
return this.request("menu", "
|
|
2740
|
+
get_menu_v3_draft_menus_count(options) {
|
|
2741
|
+
return this.request("menu", "get_menu_v3_draft_menus_count", "get", `/menu/v3/draft/menus/count`, null, options);
|
|
2806
2742
|
}
|
|
2807
2743
|
/**
|
|
2808
|
-
* GET /menu/v3/draft/
|
|
2744
|
+
* GET /menu/v3/draft/menu/{id}/categories
|
|
2809
2745
|
*
|
|
2810
2746
|
* @param id
|
|
2811
2747
|
* @param options - additional request options
|
|
2812
2748
|
*/
|
|
2813
|
-
|
|
2814
|
-
return this.request("menu", "
|
|
2749
|
+
get_menu_v3_draft_menu_categories(id, options) {
|
|
2750
|
+
return this.request("menu", "get_menu_v3_draft_menu_categories", "get", `/menu/v3/draft/menu/${id}/categories`, null, options);
|
|
2815
2751
|
}
|
|
2816
2752
|
/**
|
|
2817
|
-
* POST /menu/v3/draft/
|
|
2753
|
+
* POST /menu/v3/draft/menu/{id}/publish
|
|
2818
2754
|
*
|
|
2819
2755
|
* @param id
|
|
2820
2756
|
* @param options - additional request options
|
|
2821
2757
|
*/
|
|
2822
|
-
|
|
2823
|
-
return this.request("menu", "
|
|
2758
|
+
post_menu_v3_draft_menu_publish(id, options) {
|
|
2759
|
+
return this.request("menu", "post_menu_v3_draft_menu_publish", "post", `/menu/v3/draft/menu/${id}/publish`, null, options);
|
|
2824
2760
|
}
|
|
2825
2761
|
/**
|
|
2826
|
-
* GET /menu/v3/
|
|
2762
|
+
* GET /menu/v3/menu/{id}
|
|
2827
2763
|
*
|
|
2828
2764
|
* @param id
|
|
2829
2765
|
* @param options - additional request options
|
|
2830
2766
|
*/
|
|
2831
|
-
|
|
2832
|
-
return this.request("menu", "
|
|
2767
|
+
get_menu_v3_menu(id, options) {
|
|
2768
|
+
return this.request("menu", "get_menu_v3_menu", "get", `/menu/v3/menu/${id}`, null, options);
|
|
2833
2769
|
}
|
|
2834
2770
|
/**
|
|
2835
|
-
* GET /menu/v3/
|
|
2771
|
+
* GET /menu/v3/menus
|
|
2836
2772
|
*
|
|
2837
2773
|
* @param options - additional request options
|
|
2838
2774
|
*/
|
|
2839
|
-
|
|
2840
|
-
return this.request("menu", "
|
|
2775
|
+
get_menu_v3_menus(options) {
|
|
2776
|
+
return this.request("menu", "get_menu_v3_menus", "get", `/menu/v3/menus`, null, options);
|
|
2841
2777
|
}
|
|
2842
2778
|
/**
|
|
2843
|
-
* GET /menu/v3/
|
|
2779
|
+
* GET /menu/v3/menus/count
|
|
2844
2780
|
*
|
|
2845
2781
|
* @param options - additional request options
|
|
2846
2782
|
*/
|
|
2847
|
-
|
|
2848
|
-
return this.request("menu", "
|
|
2783
|
+
get_menu_v3_menus_count(options) {
|
|
2784
|
+
return this.request("menu", "get_menu_v3_menus_count", "get", `/menu/v3/menus/count`, null, options);
|
|
2849
2785
|
}
|
|
2850
2786
|
/**
|
|
2851
|
-
* GET /menu/v3/
|
|
2787
|
+
* GET /menu/v3/menu/{id}/categories
|
|
2852
2788
|
*
|
|
2853
2789
|
* @param id
|
|
2854
2790
|
* @param options - additional request options
|
|
2855
2791
|
*/
|
|
2856
|
-
|
|
2857
|
-
return this.request("menu", "
|
|
2792
|
+
get_menu_v3_menu_categories(id, options) {
|
|
2793
|
+
return this.request("menu", "get_menu_v3_menu_categories", "get", `/menu/v3/menu/${id}/categories`, null, options);
|
|
2858
2794
|
}
|
|
2859
2795
|
/**
|
|
2860
2796
|
* POST /menu/v3/draft/category
|
|
@@ -2902,13 +2838,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2902
2838
|
return this.request("menu", "get_menu_v3_draft_categories_count", "get", `/menu/v3/draft/categories/count`, null, options);
|
|
2903
2839
|
}
|
|
2904
2840
|
/**
|
|
2905
|
-
* POST /menu/v3/draft/
|
|
2841
|
+
* POST /menu/v3/draft/categories
|
|
2906
2842
|
*
|
|
2907
2843
|
* @param body
|
|
2908
2844
|
* @param options - additional request options
|
|
2909
2845
|
*/
|
|
2910
|
-
|
|
2911
|
-
return this.request("menu", "
|
|
2846
|
+
post_menu_v3_draft_categories(body, options) {
|
|
2847
|
+
return this.request("menu", "post_menu_v3_draft_categories", "post", `/menu/v3/draft/categories`, body, options);
|
|
2912
2848
|
}
|
|
2913
2849
|
/**
|
|
2914
2850
|
* GET /menu/v3/category/{id}
|
|
@@ -3459,6 +3395,39 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3459
3395
|
get_menu_v3_modifiers_count(options) {
|
|
3460
3396
|
return this.request("menu", "get_menu_v3_modifiers_count", "get", `/menu/v3/modifiers/count`, null, options);
|
|
3461
3397
|
}
|
|
3398
|
+
/**
|
|
3399
|
+
* POST /menu/v3/integrations/transltr/import
|
|
3400
|
+
*
|
|
3401
|
+
* @param options - additional request options
|
|
3402
|
+
*/
|
|
3403
|
+
post_menu_v3_integrations_transltr_import(options) {
|
|
3404
|
+
return this.request("menu", "post_menu_v3_integrations_transltr_import", "post", `/menu/v3/integrations/transltr/import`, null, options);
|
|
3405
|
+
}
|
|
3406
|
+
/**
|
|
3407
|
+
* GET /menu/v3/global-diff/{id}
|
|
3408
|
+
*
|
|
3409
|
+
* @param id
|
|
3410
|
+
* @param options - additional request options
|
|
3411
|
+
*/
|
|
3412
|
+
get_menu_v3_global_diff(id, options) {
|
|
3413
|
+
return this.request("menu", "get_menu_v3_global_diff", "get", `/menu/v3/global-diff/${id}`, null, options);
|
|
3414
|
+
}
|
|
3415
|
+
/**
|
|
3416
|
+
* GET /menu/v3/global-diffs
|
|
3417
|
+
*
|
|
3418
|
+
* @param options - additional request options
|
|
3419
|
+
*/
|
|
3420
|
+
get_menu_v3_global_diffs(options) {
|
|
3421
|
+
return this.request("menu", "get_menu_v3_global_diffs", "get", `/menu/v3/global-diffs`, null, options);
|
|
3422
|
+
}
|
|
3423
|
+
/**
|
|
3424
|
+
* GET /menu/v3/global-diffs/count
|
|
3425
|
+
*
|
|
3426
|
+
* @param options - additional request options
|
|
3427
|
+
*/
|
|
3428
|
+
get_menu_v3_global_diffs_count(options) {
|
|
3429
|
+
return this.request("menu", "get_menu_v3_global_diffs_count", "get", `/menu/v3/global-diffs/count`, null, options);
|
|
3430
|
+
}
|
|
3462
3431
|
/**
|
|
3463
3432
|
* GET /notification - Get all notifications
|
|
3464
3433
|
*
|
|
@@ -3680,89 +3649,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3680
3649
|
post_vendor_reset_password(id, body, options) {
|
|
3681
3650
|
return this.request("vendor", "post_vendor_reset_password", "post", `/vendor/${id}/reset/password`, body, options);
|
|
3682
3651
|
}
|
|
3683
|
-
/**
|
|
3684
|
-
* POST /permission - Creates a new permission for a role or a user
|
|
3685
|
-
*
|
|
3686
|
-
* @param body
|
|
3687
|
-
* @param options - additional request options
|
|
3688
|
-
*/
|
|
3689
|
-
post_permission(body, options) {
|
|
3690
|
-
return this.request("permission", "post_permission", "post", `/permission`, body, options);
|
|
3691
|
-
}
|
|
3692
|
-
/**
|
|
3693
|
-
* DELETE /permission/{id} - Delete a permission from a role or a user
|
|
3694
|
-
*
|
|
3695
|
-
* @param id - permission
|
|
3696
|
-
* @param options - additional request options
|
|
3697
|
-
*/
|
|
3698
|
-
delete_permission(id, options) {
|
|
3699
|
-
return this.request("permission", "delete_permission", "delete", `/permission/${id}`, null, options);
|
|
3700
|
-
}
|
|
3701
|
-
/**
|
|
3702
|
-
* GET /permission/role - Get Roles, with pagination and filters
|
|
3703
|
-
*
|
|
3704
|
-
* @param options - additional request options
|
|
3705
|
-
*/
|
|
3706
|
-
get_permission_role(options) {
|
|
3707
|
-
return this.request("permission", "get_permission_role", "get", `/permission/role`, null, options);
|
|
3708
|
-
}
|
|
3709
|
-
/**
|
|
3710
|
-
* POST /permission/role - Create a new role
|
|
3711
|
-
*
|
|
3712
|
-
* @param body
|
|
3713
|
-
* @param options - additional request options
|
|
3714
|
-
*/
|
|
3715
|
-
post_permission_role(body, options) {
|
|
3716
|
-
return this.request("permission", "post_permission_role", "post", `/permission/role`, body, options);
|
|
3717
|
-
}
|
|
3718
|
-
/**
|
|
3719
|
-
* PATCH /permission/role/{id} - Update a role
|
|
3720
|
-
*
|
|
3721
|
-
* @param id - role
|
|
3722
|
-
* @param body
|
|
3723
|
-
* @param options - additional request options
|
|
3724
|
-
*/
|
|
3725
|
-
patch_permission_role(id, body, options) {
|
|
3726
|
-
return this.request("permission", "patch_permission_role", "patch", `/permission/role/${id}`, body, options);
|
|
3727
|
-
}
|
|
3728
|
-
/**
|
|
3729
|
-
* GET /permission/recipient/{recipient_id} - Get permissions for a recipient(role or user id)
|
|
3730
|
-
*
|
|
3731
|
-
* @param recipient_id - TODO: add parameter to swagger.json
|
|
3732
|
-
* @param options - additional request options
|
|
3733
|
-
*/
|
|
3734
|
-
get_permission_recipient(recipient_id, options) {
|
|
3735
|
-
return this.request("permission", "get_permission_recipient", "get", `/permission/recipient/${recipient_id}`, null, options);
|
|
3736
|
-
}
|
|
3737
|
-
/**
|
|
3738
|
-
* GET /permission/role/user/{user_id} - Get a list of role assignments for a user
|
|
3739
|
-
*
|
|
3740
|
-
* @param user_id - Id of a user
|
|
3741
|
-
* @param options - additional request options
|
|
3742
|
-
*/
|
|
3743
|
-
get_permission_role_user(user_id, options) {
|
|
3744
|
-
return this.request("permission", "get_permission_role_user", "get", `/permission/role/user/${user_id}`, null, options);
|
|
3745
|
-
}
|
|
3746
|
-
/**
|
|
3747
|
-
* POST /permission/role/user/{user_id} - Assign a role to a user
|
|
3748
|
-
*
|
|
3749
|
-
* @param user_id - Id of a user
|
|
3750
|
-
* @param body
|
|
3751
|
-
* @param options - additional request options
|
|
3752
|
-
*/
|
|
3753
|
-
post_permission_role_user(user_id, body, options) {
|
|
3754
|
-
return this.request("permission", "post_permission_role_user", "post", `/permission/role/user/${user_id}`, body, options);
|
|
3755
|
-
}
|
|
3756
|
-
/**
|
|
3757
|
-
* DELETE /permission/role/user/{user_id} - Remove a role from a user
|
|
3758
|
-
*
|
|
3759
|
-
* @param user_id - Id of a user
|
|
3760
|
-
* @param body
|
|
3761
|
-
* @param options - additional request options
|
|
3762
|
-
*/
|
|
3763
|
-
delete_permission_role_user(user_id, body, options) {
|
|
3764
|
-
return this.request("permission", "delete_permission_role_user", "delete", `/permission/role/user/${user_id}`, body, options);
|
|
3765
|
-
}
|
|
3766
3652
|
/**
|
|
3767
3653
|
* GET /delivery/{id}/order/{order_id} - get delivery for order
|
|
3768
3654
|
*
|
|
@@ -3792,198 +3678,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3792
3678
|
post_delivery_availability(id, body, options) {
|
|
3793
3679
|
return this.request("delivery", "post_delivery_availability", "post", `/delivery/${id}/availability`, body, options);
|
|
3794
3680
|
}
|
|
3795
|
-
/**
|
|
3796
|
-
* POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
|
|
3797
|
-
*
|
|
3798
|
-
* @param id - Loyalty Provider id
|
|
3799
|
-
* @param user_id - CompassDigital User id
|
|
3800
|
-
* @param options - additional request options
|
|
3801
|
-
*/
|
|
3802
|
-
post_loyalty_enroll(id, user_id, options) {
|
|
3803
|
-
return this.request("loyalty", "post_loyalty_enroll", "post", `/loyalty/${id}/enroll/${user_id}`, null, options);
|
|
3804
|
-
}
|
|
3805
|
-
/**
|
|
3806
|
-
* GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
|
|
3807
|
-
*
|
|
3808
|
-
* @param id - Loyalty Provider id
|
|
3809
|
-
* @param options - additional request options
|
|
3810
|
-
*/
|
|
3811
|
-
get_loyalty_points(id, options) {
|
|
3812
|
-
return this.request("loyalty", "get_loyalty_points", "get", `/loyalty/${id}/points`, null, options);
|
|
3813
|
-
}
|
|
3814
|
-
/**
|
|
3815
|
-
* GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
|
|
3816
|
-
*
|
|
3817
|
-
* @param id - Loyalty Provider id
|
|
3818
|
-
* @param user_id - CompassDigital User id
|
|
3819
|
-
* @param options - additional request options
|
|
3820
|
-
*/
|
|
3821
|
-
get_loyalty_offers(id, user_id, options) {
|
|
3822
|
-
return this.request("loyalty", "get_loyalty_offers", "get", `/loyalty/${id}/offers/${user_id}`, null, options);
|
|
3823
|
-
}
|
|
3824
|
-
/**
|
|
3825
|
-
* GET /loyalty/{id}/enrollmentstatus/{user_id} - Get enrollment status for logged in user
|
|
3826
|
-
*
|
|
3827
|
-
* @param id - Loyalty Provider id
|
|
3828
|
-
* @param user_id - CompassDigital User id
|
|
3829
|
-
* @param options - additional request options
|
|
3830
|
-
*/
|
|
3831
|
-
get_loyalty_enrollmentstatus(id, user_id, options) {
|
|
3832
|
-
return this.request("loyalty", "get_loyalty_enrollmentstatus", "get", `/loyalty/${id}/enrollmentstatus/${user_id}`, null, options);
|
|
3833
|
-
}
|
|
3834
|
-
/**
|
|
3835
|
-
* GET /loyalty/{id}/balance/{user_id} - Get loyalty point balance for logged in user
|
|
3836
|
-
*
|
|
3837
|
-
* @param id - Loyalty Provider id
|
|
3838
|
-
* @param user_id - CompassDigital User id
|
|
3839
|
-
* @param options - additional request options
|
|
3840
|
-
*/
|
|
3841
|
-
get_loyalty_balance(id, user_id, options) {
|
|
3842
|
-
return this.request("loyalty", "get_loyalty_balance", "get", `/loyalty/${id}/balance/${user_id}`, null, options);
|
|
3843
|
-
}
|
|
3844
|
-
/**
|
|
3845
|
-
* GET /loyalty/{id}/opportunities/{user_id} - Get earning opportunities for the logged in user
|
|
3846
|
-
*
|
|
3847
|
-
* @param id - Loyalty Provider id
|
|
3848
|
-
* @param user_id - CompassDigital User id
|
|
3849
|
-
* @param options - additional request options
|
|
3850
|
-
*/
|
|
3851
|
-
get_loyalty_opportunities(id, user_id, options) {
|
|
3852
|
-
return this.request("loyalty", "get_loyalty_opportunities", "get", `/loyalty/${id}/opportunities/${user_id}`, null, options);
|
|
3853
|
-
}
|
|
3854
|
-
/**
|
|
3855
|
-
* POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
|
|
3856
|
-
*
|
|
3857
|
-
* @param id - Loyalty Provider id
|
|
3858
|
-
* @param user_id - CompassDigital User id
|
|
3859
|
-
* @param options - additional request options
|
|
3860
|
-
*/
|
|
3861
|
-
post_loyalty_opportunities(id, user_id, options) {
|
|
3862
|
-
return this.request("loyalty", "post_loyalty_opportunities", "post", `/loyalty/${id}/opportunities/${user_id}`, null, options);
|
|
3863
|
-
}
|
|
3864
|
-
/**
|
|
3865
|
-
* GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
|
|
3866
|
-
*
|
|
3867
|
-
* @param id - Loyalty Provider id
|
|
3868
|
-
* @param user_id - CompassDigital User id
|
|
3869
|
-
* @param options - additional request options
|
|
3870
|
-
*/
|
|
3871
|
-
get_loyalty_rewards(id, user_id, options) {
|
|
3872
|
-
return this.request("loyalty", "get_loyalty_rewards", "get", `/loyalty/${id}/rewards/${user_id}`, null, options);
|
|
3873
|
-
}
|
|
3874
|
-
/**
|
|
3875
|
-
* GET /loyalty/{id}/coupons/{user_id} - Get coupons available for the logged in user
|
|
3876
|
-
*
|
|
3877
|
-
* @param id - Loyalty Provider id
|
|
3878
|
-
* @param user_id - CompassDigital User id
|
|
3879
|
-
* @param options - additional request options
|
|
3880
|
-
*/
|
|
3881
|
-
get_loyalty_coupons(id, user_id, options) {
|
|
3882
|
-
return this.request("loyalty", "get_loyalty_coupons", "get", `/loyalty/${id}/coupons/${user_id}`, null, options);
|
|
3883
|
-
}
|
|
3884
|
-
/**
|
|
3885
|
-
* GET /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for an order based on amount.
|
|
3886
|
-
*
|
|
3887
|
-
* @param id - Loyalty Provider id
|
|
3888
|
-
* @param user_id - CompassDigital User id
|
|
3889
|
-
* @param options - additional request options
|
|
3890
|
-
*/
|
|
3891
|
-
get_loyalty_orderpoints(id, user_id, options) {
|
|
3892
|
-
return this.request("loyalty", "get_loyalty_orderpoints", "get", `/loyalty/${id}/orderpoints/${user_id}`, null, options);
|
|
3893
|
-
}
|
|
3894
|
-
/**
|
|
3895
|
-
* POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
|
|
3896
|
-
*
|
|
3897
|
-
* @param id - Loyalty Provider id
|
|
3898
|
-
* @param user_id - CompassDigital User id
|
|
3899
|
-
* @param body
|
|
3900
|
-
* @param options - additional request options
|
|
3901
|
-
*/
|
|
3902
|
-
post_loyalty_orderpoints(id, user_id, body, options) {
|
|
3903
|
-
return this.request("loyalty", "post_loyalty_orderpoints", "post", `/loyalty/${id}/orderpoints/${user_id}`, body, options);
|
|
3904
|
-
}
|
|
3905
|
-
/**
|
|
3906
|
-
* POST /loyalty/{id}/purchase/{user_id} - Record purchase event
|
|
3907
|
-
*
|
|
3908
|
-
* @param id - Loyalty Provider id
|
|
3909
|
-
* @param user_id - CompassDigital User id
|
|
3910
|
-
* @param body
|
|
3911
|
-
* @param options - additional request options
|
|
3912
|
-
*/
|
|
3913
|
-
post_loyalty_purchase(id, user_id, body, options) {
|
|
3914
|
-
return this.request("loyalty", "post_loyalty_purchase", "post", `/loyalty/${id}/purchase/${user_id}`, body, options);
|
|
3915
|
-
}
|
|
3916
|
-
/**
|
|
3917
|
-
* POST /loyalty/{id}/buyreward/{user_id} - Redeem rewards to coupons
|
|
3918
|
-
*
|
|
3919
|
-
* @param id - Loyalty Provider id
|
|
3920
|
-
* @param user_id - CompassDigital User id
|
|
3921
|
-
* @param body
|
|
3922
|
-
* @param options - additional request options
|
|
3923
|
-
*/
|
|
3924
|
-
post_loyalty_buyreward(id, user_id, body, options) {
|
|
3925
|
-
return this.request("loyalty", "post_loyalty_buyreward", "post", `/loyalty/${id}/buyreward/${user_id}`, body, options);
|
|
3926
|
-
}
|
|
3927
|
-
/**
|
|
3928
|
-
* GET /loyalty/{id}/history/{user_id} - Get history of loyalty transactions for user
|
|
3929
|
-
*
|
|
3930
|
-
* @param id - Loyalty Provider id
|
|
3931
|
-
* @param user_id - CompassDigital User id
|
|
3932
|
-
* @param options - additional request options
|
|
3933
|
-
*/
|
|
3934
|
-
get_loyalty_history(id, user_id, options) {
|
|
3935
|
-
return this.request("loyalty", "get_loyalty_history", "get", `/loyalty/${id}/history/${user_id}`, null, options);
|
|
3936
|
-
}
|
|
3937
|
-
/**
|
|
3938
|
-
* GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
|
|
3939
|
-
*
|
|
3940
|
-
* @param id - Loyalty Provider id
|
|
3941
|
-
* @param user_id - CompassDigital User id
|
|
3942
|
-
* @param coupon_id - Coupon code to get coupon information
|
|
3943
|
-
* @param options - additional request options
|
|
3944
|
-
*/
|
|
3945
|
-
get_loyalty_coupon(id, user_id, coupon_id, options) {
|
|
3946
|
-
return this.request("loyalty", "get_loyalty_coupon", "get", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, null, options);
|
|
3947
|
-
}
|
|
3948
|
-
/**
|
|
3949
|
-
* PATCH /loyalty/{id}/coupon/{user_id}/{coupon_id} - Update coupon's status
|
|
3950
|
-
*
|
|
3951
|
-
* @param id - Loyalty Provider id
|
|
3952
|
-
* @param user_id - CompassDigital User id
|
|
3953
|
-
* @param coupon_id - Coupon code to update
|
|
3954
|
-
* @param body
|
|
3955
|
-
* @param options - additional request options
|
|
3956
|
-
*/
|
|
3957
|
-
patch_loyalty_coupon(id, user_id, coupon_id, body, options) {
|
|
3958
|
-
return this.request("loyalty", "patch_loyalty_coupon", "patch", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, body, options);
|
|
3959
|
-
}
|
|
3960
|
-
/**
|
|
3961
|
-
* GET /loyalty/{id}/search - Search CDL user id by internal 500friends id
|
|
3962
|
-
*
|
|
3963
|
-
* @param id - Loyalty Provider id
|
|
3964
|
-
* @param options - additional request options
|
|
3965
|
-
*/
|
|
3966
|
-
get_loyalty_search(id, options) {
|
|
3967
|
-
return this.request("loyalty", "get_loyalty_search", "get", `/loyalty/${id}/search`, null, options);
|
|
3968
|
-
}
|
|
3969
|
-
/**
|
|
3970
|
-
* GET /loyalty/{id}/users - Get all loyalty users updated after specific date
|
|
3971
|
-
*
|
|
3972
|
-
* @param id - Loyalty Provider id
|
|
3973
|
-
* @param options - additional request options
|
|
3974
|
-
*/
|
|
3975
|
-
get_loyalty_users(id, options) {
|
|
3976
|
-
return this.request("loyalty", "get_loyalty_users", "get", `/loyalty/${id}/users`, null, options);
|
|
3977
|
-
}
|
|
3978
|
-
/**
|
|
3979
|
-
* GET /loyalty/{id}/events - Get all loyalty events updated after specific date
|
|
3980
|
-
*
|
|
3981
|
-
* @param id - Loyalty Provider id
|
|
3982
|
-
* @param options - additional request options
|
|
3983
|
-
*/
|
|
3984
|
-
get_loyalty_events(id, options) {
|
|
3985
|
-
return this.request("loyalty", "get_loyalty_events", "get", `/loyalty/${id}/events`, null, options);
|
|
3986
|
-
}
|
|
3987
3681
|
}
|
|
3988
3682
|
exports.ServiceClient = ServiceClient;
|
|
3989
3683
|
//# sourceMappingURL=index.js.map
|