reach-api-sdk 1.0.182 → 1.0.183

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.
@@ -2137,7 +2137,7 @@ declare enum DealTarget {
2137
2137
  declare enum DealType {
2138
2138
  MULTI_ITEM = "MultiItem",
2139
2139
  MULTI_PARTICIPANT = "MultiParticipant",
2140
- EARLY_BIRD_DISCOUNT = "EarlyBirdDiscount"
2140
+ DISCOUNT_CODE = "DiscountCode"
2141
2141
  }
2142
2142
 
2143
2143
  /**
@@ -2183,6 +2183,10 @@ type Deal = {
2183
2183
  * This can represent a percentage or a fixed amount, depending on the Reach.Models.Deal.DiscountType.
2184
2184
  */
2185
2185
  discountValue?: number;
2186
+ /**
2187
+ * Gets or sets the discount code (only used for discount codes).
2188
+ */
2189
+ discountCode?: string | null;
2186
2190
  target?: DealTarget;
2187
2191
  /**
2188
2192
  * Gets the venues shortened formatted address.
@@ -7376,6 +7380,10 @@ type CreateDeal = {
7376
7380
  * This can represent a percentage or a fixed amount, depending on the Reach.Models.Deal.DiscountType.
7377
7381
  */
7378
7382
  discountValue?: number;
7383
+ /**
7384
+ * Gets or sets the discount code (only used for discount codes).
7385
+ */
7386
+ discountCode?: string | null;
7379
7387
  target?: DealTarget;
7380
7388
  /**
7381
7389
  * Gets the venues shortened formatted address.
@@ -11148,6 +11156,10 @@ type DealPatch = {
11148
11156
  * Gets or sets the value of the discount applied to the deal.
11149
11157
  */
11150
11158
  discountValue?: number;
11159
+ /**
11160
+ * Gets or sets the discount code (only used for discount codes).
11161
+ */
11162
+ discountCode?: string | null;
11151
11163
  target?: DealTarget;
11152
11164
  };
11153
11165
 
@@ -11167,12 +11179,16 @@ type DealPost = {
11167
11179
  /**
11168
11180
  * Gets or sets the number of required items for the deal.
11169
11181
  */
11170
- requiredItems: number;
11182
+ requiredItems?: number;
11171
11183
  discountType: DealDiscountType;
11172
11184
  /**
11173
11185
  * Gets or sets the value of the discount applied to the deal.
11174
11186
  */
11175
11187
  discountValue: number;
11188
+ /**
11189
+ * Gets or sets the discount code (only used for discount codes).
11190
+ */
11191
+ discountCode?: string | null;
11176
11192
  target: DealTarget;
11177
11193
  };
11178
11194
 
@@ -11256,7 +11272,7 @@ declare class DealsService {
11256
11272
  * @returns DealPage OK
11257
11273
  * @throws ApiError
11258
11274
  */
11259
- getPage({ id, ids, target, type, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11275
+ getPage({ id, ids, target, type, discountCode, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11260
11276
  /**
11261
11277
  * Gets or sets the queryable Deal Id.
11262
11278
  */
@@ -11273,6 +11289,10 @@ declare class DealsService {
11273
11289
  * Gets or sets the queryable type.
11274
11290
  */
11275
11291
  type?: DealType;
11292
+ /**
11293
+ * Gets or sets the queryable discount code.
11294
+ */
11295
+ discountCode?: string;
11276
11296
  /**
11277
11297
  * Gets or sets the page number for paged queries.
11278
11298
  */
@@ -11356,7 +11376,7 @@ declare class DealsService {
11356
11376
  * @returns boolean OK
11357
11377
  * @throws ApiError
11358
11378
  */
11359
- exists({ id, ids, target, type, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11379
+ exists({ id, ids, target, type, discountCode, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11360
11380
  /**
11361
11381
  * Gets or sets the queryable Deal Id.
11362
11382
  */
@@ -11373,6 +11393,10 @@ declare class DealsService {
11373
11393
  * Gets or sets the queryable type.
11374
11394
  */
11375
11395
  type?: DealType;
11396
+ /**
11397
+ * Gets or sets the queryable discount code.
11398
+ */
11399
+ discountCode?: string;
11376
11400
  /**
11377
11401
  * Gets or sets the page number for paged queries.
11378
11402
  */
@@ -11423,7 +11447,7 @@ declare class DealsService {
11423
11447
  * @returns Deal OK
11424
11448
  * @throws ApiError
11425
11449
  */
11426
- getListWithoutReferences({ id, ids, target, type, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11450
+ getListWithoutReferences({ id, ids, target, type, discountCode, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11427
11451
  /**
11428
11452
  * Gets or sets the queryable Deal Id.
11429
11453
  */
@@ -11440,6 +11464,10 @@ declare class DealsService {
11440
11464
  * Gets or sets the queryable type.
11441
11465
  */
11442
11466
  type?: DealType;
11467
+ /**
11468
+ * Gets or sets the queryable discount code.
11469
+ */
11470
+ discountCode?: string;
11443
11471
  /**
11444
11472
  * Gets or sets the page number for paged queries.
11445
11473
  */
@@ -11490,7 +11518,7 @@ declare class DealsService {
11490
11518
  * @returns Deal OK
11491
11519
  * @throws ApiError
11492
11520
  */
11493
- getListIdName({ id, ids, target, type, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11521
+ getListIdName({ id, ids, target, type, discountCode, pageNumber, take, skip, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
11494
11522
  /**
11495
11523
  * Gets or sets the queryable Deal Id.
11496
11524
  */
@@ -11507,6 +11535,10 @@ declare class DealsService {
11507
11535
  * Gets or sets the queryable type.
11508
11536
  */
11509
11537
  type?: DealType;
11538
+ /**
11539
+ * Gets or sets the queryable discount code.
11540
+ */
11541
+ discountCode?: string;
11510
11542
  /**
11511
11543
  * Gets or sets the page number for paged queries.
11512
11544
  */
package/dist/reach-sdk.js CHANGED
@@ -5750,6 +5750,7 @@ const request = (config, options, axiosClient = axios) => {
5750
5750
  ids,
5751
5751
  target,
5752
5752
  type,
5753
+ discountCode,
5753
5754
  pageNumber,
5754
5755
  take,
5755
5756
  skip,
@@ -5770,6 +5771,7 @@ const request = (config, options, axiosClient = axios) => {
5770
5771
  Ids: ids,
5771
5772
  Target: target,
5772
5773
  Type: type,
5774
+ DiscountCode: discountCode,
5773
5775
  PageNumber: pageNumber,
5774
5776
  Take: take,
5775
5777
  Skip: skip,
@@ -5862,6 +5864,7 @@ const request = (config, options, axiosClient = axios) => {
5862
5864
  ids,
5863
5865
  target,
5864
5866
  type,
5867
+ discountCode,
5865
5868
  pageNumber,
5866
5869
  take,
5867
5870
  skip,
@@ -5882,6 +5885,7 @@ const request = (config, options, axiosClient = axios) => {
5882
5885
  Ids: ids,
5883
5886
  Target: target,
5884
5887
  Type: type,
5888
+ DiscountCode: discountCode,
5885
5889
  PageNumber: pageNumber,
5886
5890
  Take: take,
5887
5891
  Skip: skip,
@@ -5911,6 +5915,7 @@ const request = (config, options, axiosClient = axios) => {
5911
5915
  ids,
5912
5916
  target,
5913
5917
  type,
5918
+ discountCode,
5914
5919
  pageNumber,
5915
5920
  take,
5916
5921
  skip,
@@ -5931,6 +5936,7 @@ const request = (config, options, axiosClient = axios) => {
5931
5936
  Ids: ids,
5932
5937
  Target: target,
5933
5938
  Type: type,
5939
+ DiscountCode: discountCode,
5934
5940
  PageNumber: pageNumber,
5935
5941
  Take: take,
5936
5942
  Skip: skip,
@@ -5960,6 +5966,7 @@ const request = (config, options, axiosClient = axios) => {
5960
5966
  ids,
5961
5967
  target,
5962
5968
  type,
5969
+ discountCode,
5963
5970
  pageNumber,
5964
5971
  take,
5965
5972
  skip,
@@ -5980,6 +5987,7 @@ const request = (config, options, axiosClient = axios) => {
5980
5987
  Ids: ids,
5981
5988
  Target: target,
5982
5989
  Type: type,
5990
+ DiscountCode: discountCode,
5983
5991
  PageNumber: pageNumber,
5984
5992
  Take: take,
5985
5993
  Skip: skip,
@@ -40614,7 +40622,7 @@ const request = (config, options, axiosClient = axios) => {
40614
40622
  })(DealTarget || {});var DealType = /* @__PURE__ */ ((DealType2) => {
40615
40623
  DealType2["MULTI_ITEM"] = "MultiItem";
40616
40624
  DealType2["MULTI_PARTICIPANT"] = "MultiParticipant";
40617
- DealType2["EARLY_BIRD_DISCOUNT"] = "EarlyBirdDiscount";
40625
+ DealType2["DISCOUNT_CODE"] = "DiscountCode";
40618
40626
  return DealType2;
40619
40627
  })(DealType || {});var FacilityIndividualsType = /* @__PURE__ */ ((FacilityIndividualsType2) => {
40620
40628
  FacilityIndividualsType2["COURT"] = "Court";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.182",
3
+ "version": "1.0.183",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16217,6 +16217,11 @@ paths:
16217
16217
  description: Gets or sets the queryable type.
16218
16218
  schema:
16219
16219
  $ref: '#/components/schemas/DealType'
16220
+ - name: DiscountCode
16221
+ in: query
16222
+ description: Gets or sets the queryable discount code.
16223
+ schema:
16224
+ type: string
16220
16225
  - name: PageNumber
16221
16226
  in: query
16222
16227
  description: Gets or sets the page number for paged queries.
@@ -16540,6 +16545,11 @@ paths:
16540
16545
  description: Gets or sets the queryable type.
16541
16546
  schema:
16542
16547
  $ref: '#/components/schemas/DealType'
16548
+ - name: DiscountCode
16549
+ in: query
16550
+ description: Gets or sets the queryable discount code.
16551
+ schema:
16552
+ type: string
16543
16553
  - name: PageNumber
16544
16554
  in: query
16545
16555
  description: Gets or sets the page number for paged queries.
@@ -16685,6 +16695,11 @@ paths:
16685
16695
  description: Gets or sets the queryable type.
16686
16696
  schema:
16687
16697
  $ref: '#/components/schemas/DealType'
16698
+ - name: DiscountCode
16699
+ in: query
16700
+ description: Gets or sets the queryable discount code.
16701
+ schema:
16702
+ type: string
16688
16703
  - name: PageNumber
16689
16704
  in: query
16690
16705
  description: Gets or sets the page number for paged queries.
@@ -16836,6 +16851,11 @@ paths:
16836
16851
  description: Gets or sets the queryable type.
16837
16852
  schema:
16838
16853
  $ref: '#/components/schemas/DealType'
16854
+ - name: DiscountCode
16855
+ in: query
16856
+ description: Gets or sets the queryable discount code.
16857
+ schema:
16858
+ type: string
16839
16859
  - name: PageNumber
16840
16860
  in: query
16841
16861
  description: Gets or sets the page number for paged queries.
@@ -120780,6 +120800,10 @@ components:
120780
120800
  type: number
120781
120801
  description: "Gets or sets the value of the discount applied to the deal.\r\nThis can represent a percentage or a fixed amount, depending on the Reach.Models.Deal.DiscountType."
120782
120802
  format: double
120803
+ discountCode:
120804
+ type: string
120805
+ description: Gets or sets the discount code (only used for discount codes).
120806
+ nullable: true
120783
120807
  target:
120784
120808
  $ref: '#/components/schemas/DealTarget'
120785
120809
  typeLabel:
@@ -121706,6 +121730,10 @@ components:
121706
121730
  type: number
121707
121731
  description: "Gets or sets the value of the discount applied to the deal.\r\nThis can represent a percentage or a fixed amount, depending on the Reach.Models.Deal.DiscountType."
121708
121732
  format: double
121733
+ discountCode:
121734
+ type: string
121735
+ description: Gets or sets the discount code (only used for discount codes).
121736
+ nullable: true
121709
121737
  target:
121710
121738
  $ref: '#/components/schemas/DealTarget'
121711
121739
  typeLabel:
@@ -121930,6 +121958,10 @@ components:
121930
121958
  type: number
121931
121959
  description: Gets or sets the value of the discount applied to the deal.
121932
121960
  format: double
121961
+ discountCode:
121962
+ type: string
121963
+ description: Gets or sets the discount code (only used for discount codes).
121964
+ nullable: true
121933
121965
  target:
121934
121966
  $ref: '#/components/schemas/DealTarget'
121935
121967
  additionalProperties: false
@@ -121939,7 +121971,6 @@ components:
121939
121971
  - discountType
121940
121972
  - discountValue
121941
121973
  - name
121942
- - requiredItems
121943
121974
  - target
121944
121975
  - tenantId
121945
121976
  - type
@@ -121966,6 +121997,10 @@ components:
121966
121997
  type: number
121967
121998
  description: Gets or sets the value of the discount applied to the deal.
121968
121999
  format: double
122000
+ discountCode:
122001
+ type: string
122002
+ description: Gets or sets the discount code (only used for discount codes).
122003
+ nullable: true
121969
122004
  target:
121970
122005
  $ref: '#/components/schemas/DealTarget'
121971
122006
  additionalProperties: false
@@ -121980,7 +122015,7 @@ components:
121980
122015
  enum:
121981
122016
  - MultiItem
121982
122017
  - MultiParticipant
121983
- - EarlyBirdDiscount
122018
+ - DiscountCode
121984
122019
  type: string
121985
122020
  description: Controls the DealType.
121986
122021
  DescriptionCompletionResponse:
@@ -50,6 +50,10 @@ export type CreateDeal = {
50
50
  * This can represent a percentage or a fixed amount, depending on the Reach.Models.Deal.DiscountType.
51
51
  */
52
52
  discountValue?: number;
53
+ /**
54
+ * Gets or sets the discount code (only used for discount codes).
55
+ */
56
+ discountCode?: string | null;
53
57
  target?: DealTarget;
54
58
  /**
55
59
  * Gets the venues shortened formatted address.
@@ -50,6 +50,10 @@ export type Deal = {
50
50
  * This can represent a percentage or a fixed amount, depending on the Reach.Models.Deal.DiscountType.
51
51
  */
52
52
  discountValue?: number;
53
+ /**
54
+ * Gets or sets the discount code (only used for discount codes).
55
+ */
56
+ discountCode?: string | null;
53
57
  target?: DealTarget;
54
58
  /**
55
59
  * Gets the venues shortened formatted address.
@@ -33,5 +33,9 @@ export type DealPatch = {
33
33
  * Gets or sets the value of the discount applied to the deal.
34
34
  */
35
35
  discountValue?: number;
36
+ /**
37
+ * Gets or sets the discount code (only used for discount codes).
38
+ */
39
+ discountCode?: string | null;
36
40
  target?: DealTarget;
37
41
  };
@@ -23,11 +23,15 @@ export type DealPost = {
23
23
  /**
24
24
  * Gets or sets the number of required items for the deal.
25
25
  */
26
- requiredItems: number;
26
+ requiredItems?: number;
27
27
  discountType: DealDiscountType;
28
28
  /**
29
29
  * Gets or sets the value of the discount applied to the deal.
30
30
  */
31
31
  discountValue: number;
32
+ /**
33
+ * Gets or sets the discount code (only used for discount codes).
34
+ */
35
+ discountCode?: string | null;
32
36
  target: DealTarget;
33
37
  };
@@ -9,5 +9,5 @@
9
9
  export enum DealType {
10
10
  MULTI_ITEM = 'MultiItem',
11
11
  MULTI_PARTICIPANT = 'MultiParticipant',
12
- EARLY_BIRD_DISCOUNT = 'EarlyBirdDiscount',
12
+ DISCOUNT_CODE = 'DiscountCode',
13
13
  }
@@ -200,6 +200,7 @@ export class DealsService {
200
200
  ids,
201
201
  target,
202
202
  type,
203
+ discountCode,
203
204
  pageNumber,
204
205
  take,
205
206
  skip,
@@ -228,6 +229,10 @@ export class DealsService {
228
229
  * Gets or sets the queryable type.
229
230
  */
230
231
  type?: DealType;
232
+ /**
233
+ * Gets or sets the queryable discount code.
234
+ */
235
+ discountCode?: string;
231
236
  /**
232
237
  * Gets or sets the page number for paged queries.
233
238
  */
@@ -281,6 +286,7 @@ export class DealsService {
281
286
  Ids: ids,
282
287
  Target: target,
283
288
  Type: type,
289
+ DiscountCode: discountCode,
284
290
  PageNumber: pageNumber,
285
291
  Take: take,
286
292
  Skip: skip,
@@ -392,6 +398,7 @@ export class DealsService {
392
398
  ids,
393
399
  target,
394
400
  type,
401
+ discountCode,
395
402
  pageNumber,
396
403
  take,
397
404
  skip,
@@ -420,6 +427,10 @@ export class DealsService {
420
427
  * Gets or sets the queryable type.
421
428
  */
422
429
  type?: DealType;
430
+ /**
431
+ * Gets or sets the queryable discount code.
432
+ */
433
+ discountCode?: string;
423
434
  /**
424
435
  * Gets or sets the page number for paged queries.
425
436
  */
@@ -473,6 +484,7 @@ export class DealsService {
473
484
  Ids: ids,
474
485
  Target: target,
475
486
  Type: type,
487
+ DiscountCode: discountCode,
476
488
  PageNumber: pageNumber,
477
489
  Take: take,
478
490
  Skip: skip,
@@ -503,6 +515,7 @@ export class DealsService {
503
515
  ids,
504
516
  target,
505
517
  type,
518
+ discountCode,
506
519
  pageNumber,
507
520
  take,
508
521
  skip,
@@ -531,6 +544,10 @@ export class DealsService {
531
544
  * Gets or sets the queryable type.
532
545
  */
533
546
  type?: DealType;
547
+ /**
548
+ * Gets or sets the queryable discount code.
549
+ */
550
+ discountCode?: string;
534
551
  /**
535
552
  * Gets or sets the page number for paged queries.
536
553
  */
@@ -584,6 +601,7 @@ export class DealsService {
584
601
  Ids: ids,
585
602
  Target: target,
586
603
  Type: type,
604
+ DiscountCode: discountCode,
587
605
  PageNumber: pageNumber,
588
606
  Take: take,
589
607
  Skip: skip,
@@ -614,6 +632,7 @@ export class DealsService {
614
632
  ids,
615
633
  target,
616
634
  type,
635
+ discountCode,
617
636
  pageNumber,
618
637
  take,
619
638
  skip,
@@ -642,6 +661,10 @@ export class DealsService {
642
661
  * Gets or sets the queryable type.
643
662
  */
644
663
  type?: DealType;
664
+ /**
665
+ * Gets or sets the queryable discount code.
666
+ */
667
+ discountCode?: string;
645
668
  /**
646
669
  * Gets or sets the page number for paged queries.
647
670
  */
@@ -695,6 +718,7 @@ export class DealsService {
695
718
  Ids: ids,
696
719
  Target: target,
697
720
  Type: type,
721
+ DiscountCode: discountCode,
698
722
  PageNumber: pageNumber,
699
723
  Take: take,
700
724
  Skip: skip,