repzo 1.0.32 → 1.0.34

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/changelog.md CHANGED
@@ -19,6 +19,7 @@
19
19
  - Patch Action @maramalshen
20
20
  - UpdateIntegrationMeta @maramalshen
21
21
  - update type of patchAction.writeQuery @maramalshen
22
+ - update item.promotions schema @maramalshen
22
23
 
23
24
  ### Changed
24
25
 
@@ -1462,6 +1462,8 @@ export declare namespace Service {
1462
1462
  search?: string;
1463
1463
  name?: string[] | string;
1464
1464
  disabled?: boolean;
1465
+ from_updatedAt?: number;
1466
+ to_updatedAt?: number;
1465
1467
  };
1466
1468
  interface Result extends DefaultPaginationResult {
1467
1469
  data: TeamSchema[];
@@ -2383,7 +2385,25 @@ export declare namespace Service {
2383
2385
  type: "inclusive" | "additive" | "N/A";
2384
2386
  disabled?: boolean;
2385
2387
  };
2386
- promotions?: Promotion.Schema[];
2388
+ promotions?: {
2389
+ isGet: boolean;
2390
+ taken: number;
2391
+ free: number;
2392
+ bookings?: {
2393
+ promotion: string;
2394
+ type: "get" | "buy";
2395
+ count: number;
2396
+ round_id: number;
2397
+ filter_index: number;
2398
+ rounds_details: {
2399
+ round_id: number;
2400
+ taken: number;
2401
+ }[];
2402
+ }[];
2403
+ promoPrice?: number;
2404
+ highlight: boolean;
2405
+ [key: string]: any;
2406
+ };
2387
2407
  used_promotions?: {
2388
2408
  id: string;
2389
2409
  name: string;
@@ -2446,7 +2466,25 @@ export declare namespace Service {
2446
2466
  type: "inclusive" | "additive" | "N/A";
2447
2467
  disabled?: boolean;
2448
2468
  };
2449
- promotions?: Promotion.Schema[];
2469
+ promotions?: {
2470
+ isGet: boolean;
2471
+ taken: number;
2472
+ free: number;
2473
+ bookings?: {
2474
+ promotion: string;
2475
+ type: "get" | "buy";
2476
+ count: number;
2477
+ round_id: number;
2478
+ filter_index: number;
2479
+ rounds_details: {
2480
+ round_id: number;
2481
+ taken: number;
2482
+ }[];
2483
+ }[];
2484
+ promoPrice?: number;
2485
+ highlight: boolean;
2486
+ [key: string]: any;
2487
+ };
2450
2488
  used_promotions?: {
2451
2489
  id: string;
2452
2490
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -1655,6 +1655,8 @@ export namespace Service {
1655
1655
  search?: string;
1656
1656
  name?: string[] | string;
1657
1657
  disabled?: boolean;
1658
+ from_updatedAt?: number;
1659
+ to_updatedAt?: number;
1658
1660
  };
1659
1661
  export interface Result extends DefaultPaginationResult {
1660
1662
  data: TeamSchema[];
@@ -2647,7 +2649,25 @@ export namespace Service {
2647
2649
  type: "inclusive" | "additive" | "N/A";
2648
2650
  disabled?: boolean;
2649
2651
  };
2650
- promotions?: Promotion.Schema[];
2652
+ promotions?: {
2653
+ isGet: boolean;
2654
+ taken: number;
2655
+ free: number;
2656
+ bookings?: {
2657
+ promotion: string;
2658
+ type: "get" | "buy";
2659
+ count: number;
2660
+ round_id: number;
2661
+ filter_index: number;
2662
+ rounds_details: {
2663
+ round_id: number;
2664
+ taken: number;
2665
+ }[];
2666
+ }[];
2667
+ promoPrice?: number;
2668
+ highlight: boolean;
2669
+ [key: string]: any;
2670
+ };
2651
2671
  used_promotions?: { id: string; name: string; ref?: string }[];
2652
2672
  general_promotions?: { id: string; name: string; ref?: string }[];
2653
2673
  applicable_promotions?: { id: string; name: string; ref?: string }[];
@@ -2698,7 +2718,25 @@ export namespace Service {
2698
2718
  type: "inclusive" | "additive" | "N/A";
2699
2719
  disabled?: boolean;
2700
2720
  };
2701
- promotions?: Promotion.Schema[];
2721
+ promotions?: {
2722
+ isGet: boolean;
2723
+ taken: number;
2724
+ free: number;
2725
+ bookings?: {
2726
+ promotion: string;
2727
+ type: "get" | "buy";
2728
+ count: number;
2729
+ round_id: number;
2730
+ filter_index: number;
2731
+ rounds_details: {
2732
+ round_id: number;
2733
+ taken: number;
2734
+ }[];
2735
+ }[];
2736
+ promoPrice?: number;
2737
+ highlight: boolean;
2738
+ [key: string]: any;
2739
+ };
2702
2740
  used_promotions?: { id: string; name: string; ref?: string }[];
2703
2741
  general_promotions?: { id: string; name: string; ref?: string }[];
2704
2742
  applicable_promotions?: { id: string; name: string; ref?: string }[];