@wix/auto_sdk_crm_labels 1.0.59 → 1.0.60

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.
@@ -2,7 +2,9 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
2
2
  import { ListLabelsOptions, ListLabelsResponse, FindOrCreateLabelOptions, FindOrCreateLabelResponse, FindOrCreateLabelApplicationErrors, GetLabelOptions, ContactLabel, RenameLabel, RenameLabelOptions, LabelCreatedEnvelope, LabelDeletedEnvelope, LabelUpdatedEnvelope, ContactLabelQuery, QueryLabelsOptions, typedQueryLabels, LabelsQueryBuilder } from './index.typings.js';
3
3
  export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, CommonQueryWithEntityContext, ContactLabelNamespace, ContactLabelQuerySpec, DeleteLabelRequest, DeleteLabelResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FindOrCreateLabelRequest, GdprListRequest, GdprListResponse, GetLabelByLegacyIdRequest, GetLabelByLegacyIdResponse, GetLabelRequest, GetLabelResponse, IdentificationData, IdentificationDataIdOneOf, LabelType, LabelTypeWithLiterals, LabelsQueryResult, LabelsQuotaReached, ListLabelNamespacesRequest, ListLabelNamespacesResponse, ListLabelsRequest, MessageEnvelope, Paging, PagingMetadata, PurgeRequest, PurgeResponse, Query, QueryLabelsApplicationErrors, QueryLabelsRequest, QueryLabelsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, UpdateLabelRequest, UpdateLabelResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
4
4
 
5
- declare function listLabels$1(httpClient: HttpClient): ListLabelsSignature;
5
+ declare function listLabels$1(httpClient: HttpClient, __options?: {
6
+ validateRequestSchema?: boolean;
7
+ }): ListLabelsSignature;
6
8
  interface ListLabelsSignature {
7
9
  /**
8
10
  * Lists all contact labels for a site.
@@ -10,7 +12,9 @@ interface ListLabelsSignature {
10
12
  */
11
13
  (options?: ListLabelsOptions): Promise<NonNullablePaths<ListLabelsResponse, `labels` | `labels.${number}.key` | `labels.${number}.displayName` | `labels.${number}.labelType`, 4>>;
12
14
  }
13
- declare function findOrCreateLabel$1(httpClient: HttpClient): FindOrCreateLabelSignature;
15
+ declare function findOrCreateLabel$1(httpClient: HttpClient, __options?: {
16
+ validateRequestSchema?: boolean;
17
+ }): FindOrCreateLabelSignature;
14
18
  interface FindOrCreateLabelSignature {
15
19
  /**
16
20
  * Retrieves a label with a specified name, or creates one if it doesn't exist.
@@ -38,7 +42,9 @@ interface FindOrCreateLabelSignature {
38
42
  __applicationErrorsType?: FindOrCreateLabelApplicationErrors;
39
43
  }>;
40
44
  }
41
- declare function getLabel$1(httpClient: HttpClient): GetLabelSignature;
45
+ declare function getLabel$1(httpClient: HttpClient, __options?: {
46
+ validateRequestSchema?: boolean;
47
+ }): GetLabelSignature;
42
48
  interface GetLabelSignature {
43
49
  /**
44
50
  * Retrieves a label by the specified label key.
@@ -51,7 +57,9 @@ interface GetLabelSignature {
51
57
  */
52
58
  (key: string, options?: GetLabelOptions): Promise<NonNullablePaths<ContactLabel, `key` | `displayName` | `labelType`, 2>>;
53
59
  }
54
- declare function renameLabel$1(httpClient: HttpClient): RenameLabelSignature;
60
+ declare function renameLabel$1(httpClient: HttpClient, __options?: {
61
+ validateRequestSchema?: boolean;
62
+ }): RenameLabelSignature;
55
63
  interface RenameLabelSignature {
56
64
  /**
57
65
  * Renames a label.
@@ -65,7 +73,9 @@ interface RenameLabelSignature {
65
73
  */
66
74
  (key: string, label: NonNullablePaths<RenameLabel, `displayName`, 2>, options?: RenameLabelOptions): Promise<NonNullablePaths<ContactLabel, `key` | `displayName` | `labelType`, 2>>;
67
75
  }
68
- declare function deleteLabel$1(httpClient: HttpClient): DeleteLabelSignature;
76
+ declare function deleteLabel$1(httpClient: HttpClient, __options?: {
77
+ validateRequestSchema?: boolean;
78
+ }): DeleteLabelSignature;
69
79
  interface DeleteLabelSignature {
70
80
  /**
71
81
  * Deletes the specified label from a site and removes it from the contacts it applies to.
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // index.ts
@@ -287,6 +297,236 @@ function queryLabels(payload) {
287
297
 
288
298
  // src/contacts-v4-label-labels.universal.ts
289
299
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
300
+
301
+ // src/contacts-v4-label-labels.schemas.ts
302
+ var z = __toESM(require("zod"));
303
+ var ListLabelsRequest = z.object({
304
+ options: z.object({
305
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).optional(),
306
+ namespace: z.string().describe("Filter for labels in the specified namespace.").min(3).max(25).optional().nullable(),
307
+ startsWith: z.string().describe(
308
+ "Filter for labels where `displayName` starts with the specified case-sensitive string."
309
+ ).min(1).max(180).optional().nullable(),
310
+ sort: z.object({
311
+ fieldName: z.string().describe("Name of the field to sort by.").max(3e3).optional(),
312
+ order: z.enum(["ASC", "DESC"]).optional()
313
+ }).describe("Sorting options.").optional(),
314
+ paging: z.object({
315
+ limit: z.number().int().describe(
316
+ "Number of items to return.\n\nDefaults to `1000`. <br>\nMaximum: `2000`."
317
+ ).min(0).optional().nullable(),
318
+ offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
319
+ }).describe("Paging options.").optional(),
320
+ language: z.string().optional().nullable()
321
+ }).optional()
322
+ });
323
+ var ListLabelsResponse = z.object({
324
+ labels: z.array(
325
+ z.object({
326
+ namespace: z.string().describe(
327
+ "Label namespace.\n\nLabels created by calling the Find Or Create Label method\nare automatically assigned to the `custom` namespace."
328
+ ).min(1).max(25).optional().nullable(),
329
+ namespaceDisplayName: z.string().describe(
330
+ "Display name for the namespace,\nused to organize the list of labels in the site dashboard."
331
+ ).min(1).max(180).optional().nullable(),
332
+ key: z.string().describe(
333
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
334
+ ).min(1).max(80).optional(),
335
+ displayName: z.string().describe("Label display name shown in the dashboard.").min(1).max(180).optional(),
336
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).describe("Label type indicating how the label was created.").optional(),
337
+ _createdDate: z.date().describe("Date and time the label was created.").optional().nullable(),
338
+ _updatedDate: z.date().describe("Date and time the label was last updated.").optional().nullable()
339
+ })
340
+ ).optional(),
341
+ metadata: z.object({
342
+ count: z.number().int().describe("Number of items returned.").optional().nullable(),
343
+ offset: z.number().int().describe("Requested offset.").optional().nullable(),
344
+ total: z.number().int().describe("Number of items that matched the query.").optional().nullable(),
345
+ tooManyToCount: z.boolean().describe(
346
+ "Indicates if `total` calculation timed out before the response was sent.\nTypically this happens if there is a large set of results."
347
+ ).optional().nullable()
348
+ }).describe("Metadata for the page of results.").optional()
349
+ });
350
+ var FindOrCreateLabelRequest = z.object({
351
+ displayName: z.string().describe(
352
+ "Display name to retrieve or create.\n\nIf an existing label is an exact match\nfor the specified display name,\nthe existing label is returned.\nIf not, a new label is created and returned."
353
+ ).min(1).max(180),
354
+ options: z.object({
355
+ language: z.string().describe(
356
+ "Language for localization.\n2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format."
357
+ ).optional().nullable()
358
+ }).describe("Language options.").optional()
359
+ });
360
+ var FindOrCreateLabelResponse = z.object({
361
+ label: z.object({
362
+ namespace: z.string().describe(
363
+ "Label namespace.\n\nLabels created by calling the Find Or Create Label method\nare automatically assigned to the `custom` namespace."
364
+ ).min(1).max(25).optional().nullable(),
365
+ namespaceDisplayName: z.string().describe(
366
+ "Display name for the namespace,\nused to organize the list of labels in the site dashboard."
367
+ ).min(1).max(180).optional().nullable(),
368
+ key: z.string().describe(
369
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
370
+ ).min(1).max(80).optional(),
371
+ displayName: z.string().describe("Label display name shown in the dashboard.").min(1).max(180).optional(),
372
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).describe("Label type indicating how the label was created.").optional(),
373
+ _createdDate: z.date().describe("Date and time the label was created.").optional().nullable(),
374
+ _updatedDate: z.date().describe("Date and time the label was last updated.").optional().nullable()
375
+ }).describe("Label that was found or created.").optional(),
376
+ newLabel: z.boolean().describe(
377
+ "Indicates whether the label was just created or already existed.\n\nReturns `true` if the label was just created."
378
+ ).optional()
379
+ });
380
+ var GetLabelRequest = z.object({
381
+ key: z.string().describe(
382
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
383
+ ).min(1).max(80),
384
+ options: z.object({
385
+ language: z.string().describe(
386
+ "Language for localization.\n2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format."
387
+ ).optional().nullable()
388
+ }).describe("Language options.").optional()
389
+ });
390
+ var GetLabelResponse = z.object({
391
+ namespace: z.string().describe(
392
+ "Label namespace.\n\nLabels created by calling the Find Or Create Label method\nare automatically assigned to the `custom` namespace."
393
+ ).min(1).max(25).optional().nullable(),
394
+ namespaceDisplayName: z.string().describe(
395
+ "Display name for the namespace,\nused to organize the list of labels in the site dashboard."
396
+ ).min(1).max(180).optional().nullable(),
397
+ key: z.string().describe(
398
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
399
+ ).min(1).max(80).optional(),
400
+ displayName: z.string().describe("Label display name shown in the dashboard.").min(1).max(180).optional(),
401
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).describe("Label type indicating how the label was created.").optional(),
402
+ _createdDate: z.date().describe("Date and time the label was created.").optional().nullable(),
403
+ _updatedDate: z.date().describe("Date and time the label was last updated.").optional().nullable()
404
+ });
405
+ var RenameLabelRequest = z.object({
406
+ key: z.string().describe(
407
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
408
+ ).min(1).max(80),
409
+ label: z.object({
410
+ namespace: z.string().describe(
411
+ "Label namespace.\n\nLabels created by calling the Find Or Create Label method\nare automatically assigned to the `custom` namespace."
412
+ ).min(1).max(25).optional().nullable(),
413
+ namespaceDisplayName: z.string().describe(
414
+ "Display name for the namespace,\nused to organize the list of labels in the site dashboard."
415
+ ).min(1).max(180).optional().nullable(),
416
+ key: z.string().describe(
417
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
418
+ ).min(1).max(80).optional(),
419
+ displayName: z.string().describe("Label display name shown in the dashboard.").min(1).max(180),
420
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).optional(),
421
+ _createdDate: z.date().describe("Date and time the label was created.").optional().nullable(),
422
+ _updatedDate: z.date().describe("Date and time the label was last updated.").optional().nullable()
423
+ }).describe("Label to rename. "),
424
+ options: z.object({
425
+ language: z.string().describe(
426
+ "Language for localization.\n2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format."
427
+ ).optional().nullable()
428
+ }).describe("Language options.").optional()
429
+ });
430
+ var RenameLabelResponse = z.object({
431
+ namespace: z.string().describe(
432
+ "Label namespace.\n\nLabels created by calling the Find Or Create Label method\nare automatically assigned to the `custom` namespace."
433
+ ).min(1).max(25).optional().nullable(),
434
+ namespaceDisplayName: z.string().describe(
435
+ "Display name for the namespace,\nused to organize the list of labels in the site dashboard."
436
+ ).min(1).max(180).optional().nullable(),
437
+ key: z.string().describe(
438
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
439
+ ).min(1).max(80).optional(),
440
+ displayName: z.string().describe("Label display name shown in the dashboard.").min(1).max(180).optional(),
441
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).describe("Label type indicating how the label was created.").optional(),
442
+ _createdDate: z.date().describe("Date and time the label was created.").optional().nullable(),
443
+ _updatedDate: z.date().describe("Date and time the label was last updated.").optional().nullable()
444
+ });
445
+ var DeleteLabelRequest = z.object({
446
+ key: z.string().describe("Label key to delete.").min(1).max(80)
447
+ });
448
+ var DeleteLabelResponse = z.object({});
449
+ var QueryLabelsRequest = z.object({
450
+ query: z.object({
451
+ filter: z.object({
452
+ key: z.object({
453
+ $eq: z.string(),
454
+ $in: z.array(z.string()),
455
+ $ne: z.string()
456
+ }).partial().strict().optional(),
457
+ displayName: z.object({
458
+ $eq: z.string(),
459
+ $in: z.array(z.string()),
460
+ $ne: z.string(),
461
+ $startsWith: z.string()
462
+ }).partial().strict().optional(),
463
+ _createdDate: z.object({
464
+ $eq: z.string(),
465
+ $gt: z.string(),
466
+ $gte: z.string(),
467
+ $lt: z.string(),
468
+ $lte: z.string(),
469
+ $ne: z.string()
470
+ }).partial().strict().optional(),
471
+ _updatedDate: z.object({
472
+ $eq: z.string(),
473
+ $gt: z.string(),
474
+ $gte: z.string(),
475
+ $lt: z.string(),
476
+ $lte: z.string(),
477
+ $ne: z.string()
478
+ }).partial().strict().optional(),
479
+ namespace: z.object({ $eq: z.string(), $ne: z.string() }).partial().strict().optional(),
480
+ labelType: z.union([
481
+ z.string(),
482
+ z.object({ $eq: z.string() }).partial().strict()
483
+ ]).optional(),
484
+ $and: z.array(z.any()).optional(),
485
+ $or: z.array(z.any()).optional(),
486
+ $not: z.any().optional()
487
+ }).strict().optional(),
488
+ sort: z.array(
489
+ z.object({
490
+ fieldName: z.enum(["displayName", "_createdDate", "_updatedDate"]).optional(),
491
+ order: z.enum(["ASC", "DESC"]).optional()
492
+ })
493
+ ).optional()
494
+ }).catchall(z.any()).describe("Query options."),
495
+ options: z.object({
496
+ language: z.string().describe(
497
+ "Language for localization.\n2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format."
498
+ ).optional().nullable()
499
+ }).describe("Language options.").optional()
500
+ });
501
+ var QueryLabelsResponse = z.object({
502
+ labels: z.array(
503
+ z.object({
504
+ namespace: z.string().describe(
505
+ "Label namespace.\n\nLabels created by calling the Find Or Create Label method\nare automatically assigned to the `custom` namespace."
506
+ ).min(1).max(25).optional().nullable(),
507
+ namespaceDisplayName: z.string().describe(
508
+ "Display name for the namespace,\nused to organize the list of labels in the site dashboard."
509
+ ).min(1).max(180).optional().nullable(),
510
+ key: z.string().describe(
511
+ "Label key.\n\n`key` is generated when the label is created.\nIt can't be modified, even if `displayName` is updated."
512
+ ).min(1).max(80).optional(),
513
+ displayName: z.string().describe("Label display name shown in the dashboard.").min(1).max(180).optional(),
514
+ labelType: z.enum(["SYSTEM", "USER_DEFINED", "WIX_APP_DEFINED"]).describe("Label type indicating how the label was created.").optional(),
515
+ _createdDate: z.date().describe("Date and time the label was created.").optional().nullable(),
516
+ _updatedDate: z.date().describe("Date and time the label was last updated.").optional().nullable()
517
+ })
518
+ ).optional(),
519
+ pagingMetadata: z.object({
520
+ count: z.number().int().describe("Number of items returned.").optional().nullable(),
521
+ offset: z.number().int().describe("Requested offset.").optional().nullable(),
522
+ total: z.number().int().describe("Number of items that matched the query.").optional().nullable(),
523
+ tooManyToCount: z.boolean().describe(
524
+ "Indicates if `total` calculation timed out before the response was sent.\nTypically this happens if there is a large set of results."
525
+ ).optional().nullable()
526
+ }).describe("Details on the paged set of results returned.").optional()
527
+ });
528
+
529
+ // src/contacts-v4-label-labels.universal.ts
290
530
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
291
531
  var LabelType = /* @__PURE__ */ ((LabelType2) => {
292
532
  LabelType2["SYSTEM"] = "SYSTEM";
@@ -308,7 +548,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
308
548
  return WebhookIdentityType2;
309
549
  })(WebhookIdentityType || {});
310
550
  async function listLabels2(options) {
311
- const { httpClient, sideEffects } = arguments[1];
551
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
552
+ if (validateRequestSchema) {
553
+ ListLabelsRequest.parse({ options });
554
+ }
312
555
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
313
556
  labelType: options?.labelType,
314
557
  namespace: options?.namespace,
@@ -345,7 +588,10 @@ async function listLabels2(options) {
345
588
  }
346
589
  }
347
590
  async function findOrCreateLabel2(displayName, options) {
348
- const { httpClient, sideEffects } = arguments[2];
591
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
592
+ if (validateRequestSchema) {
593
+ FindOrCreateLabelRequest.parse({ displayName, options });
594
+ }
349
595
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
350
596
  displayName,
351
597
  language: options?.language
@@ -374,7 +620,10 @@ async function findOrCreateLabel2(displayName, options) {
374
620
  }
375
621
  }
376
622
  async function getLabel2(key, options) {
377
- const { httpClient, sideEffects } = arguments[2];
623
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
624
+ if (validateRequestSchema) {
625
+ GetLabelRequest.parse({ key, options });
626
+ }
378
627
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
379
628
  key,
380
629
  language: options?.language
@@ -400,7 +649,10 @@ async function getLabel2(key, options) {
400
649
  }
401
650
  }
402
651
  async function renameLabel(key, label, options) {
403
- const { httpClient, sideEffects } = arguments[3];
652
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[3];
653
+ if (validateRequestSchema) {
654
+ RenameLabelRequest.parse({ key, label, options });
655
+ }
404
656
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
405
657
  label: { ...label, key },
406
658
  language: options?.language
@@ -429,7 +681,10 @@ async function renameLabel(key, label, options) {
429
681
  }
430
682
  }
431
683
  async function deleteLabel2(key) {
432
- const { httpClient, sideEffects } = arguments[1];
684
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
685
+ if (validateRequestSchema) {
686
+ DeleteLabelRequest.parse({ key });
687
+ }
433
688
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ key });
434
689
  const reqOpts = deleteLabel(payload);
435
690
  sideEffects?.onSiteCall?.();
@@ -497,7 +752,10 @@ function queryLabels2(options) {
497
752
  });
498
753
  }
499
754
  async function typedQueryLabels(query, options) {
500
- const { httpClient, sideEffects } = arguments[2];
755
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
756
+ if (validateRequestSchema) {
757
+ QueryLabelsRequest.parse({ query, options });
758
+ }
501
759
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
502
760
  query,
503
761
  ...options
@@ -529,58 +787,58 @@ var utils = {
529
787
  };
530
788
 
531
789
  // src/contacts-v4-label-labels.public.ts
532
- function listLabels3(httpClient) {
790
+ function listLabels3(httpClient, __options) {
533
791
  return (options) => listLabels2(
534
792
  options,
535
793
  // @ts-ignore
536
- { httpClient }
794
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
537
795
  );
538
796
  }
539
- function findOrCreateLabel3(httpClient) {
797
+ function findOrCreateLabel3(httpClient, __options) {
540
798
  return (displayName, options) => findOrCreateLabel2(
541
799
  displayName,
542
800
  options,
543
801
  // @ts-ignore
544
- { httpClient }
802
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
545
803
  );
546
804
  }
547
- function getLabel3(httpClient) {
805
+ function getLabel3(httpClient, __options) {
548
806
  return (key, options) => getLabel2(
549
807
  key,
550
808
  options,
551
809
  // @ts-ignore
552
- { httpClient }
810
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
553
811
  );
554
812
  }
555
- function renameLabel2(httpClient) {
813
+ function renameLabel2(httpClient, __options) {
556
814
  return (key, label, options) => renameLabel(
557
815
  key,
558
816
  label,
559
817
  options,
560
818
  // @ts-ignore
561
- { httpClient }
819
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
562
820
  );
563
821
  }
564
- function deleteLabel3(httpClient) {
822
+ function deleteLabel3(httpClient, __options) {
565
823
  return (key) => deleteLabel2(
566
824
  key,
567
825
  // @ts-ignore
568
- { httpClient }
826
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
569
827
  );
570
828
  }
571
- function queryLabels3(httpClient) {
829
+ function queryLabels3(httpClient, __options) {
572
830
  return (options) => queryLabels2(
573
831
  options,
574
832
  // @ts-ignore
575
- { httpClient }
833
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
576
834
  );
577
835
  }
578
- function typedQueryLabels2(httpClient) {
836
+ function typedQueryLabels2(httpClient, __options) {
579
837
  return (query, options) => typedQueryLabels(
580
838
  query,
581
839
  options,
582
840
  // @ts-ignore
583
- { httpClient }
841
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
584
842
  );
585
843
  }
586
844
  var onLabelCreated = (0, import_sdk_types.EventDefinition)(