@voyant-travel/legal-react 0.136.2 → 0.137.1

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.
@@ -5,7 +5,7 @@ export declare function useLegalContractSignatureMutation(): {
5
5
  create: import("@tanstack/react-query").UseMutationResult<{
6
6
  contractId: string;
7
7
  data: {
8
- method: "manual" | "electronic" | "docusign" | "other";
8
+ method: "manual" | "other" | "electronic" | "docusign";
9
9
  signerName: string;
10
10
  id: string;
11
11
  contractId: string;
@@ -3,7 +3,7 @@ export interface UseLegalContractSignaturesOptions {
3
3
  enabled?: boolean;
4
4
  }
5
5
  export declare function useLegalContractSignatures(options: UseLegalContractSignaturesOptions): import("@tanstack/react-query").UseQueryResult<{
6
- method: "manual" | "electronic" | "docusign" | "other";
6
+ method: "manual" | "other" | "electronic" | "docusign";
7
7
  signerName: string;
8
8
  id: string;
9
9
  contractId: string;
@@ -387,7 +387,7 @@ export declare function getLegalContractQueryOptions(client: FetchWithValidation
387
387
  };
388
388
  };
389
389
  export declare function getLegalContractSignaturesQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractSignaturesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
390
- method: "manual" | "electronic" | "docusign" | "other";
390
+ method: "manual" | "other" | "electronic" | "docusign";
391
391
  signerName: string;
392
392
  id: string;
393
393
  contractId: string;
@@ -409,7 +409,7 @@ export declare function getLegalContractSignaturesQueryOptions(client: FetchWith
409
409
  legacyTransactionOrderId?: string | null | undefined;
410
410
  metadata?: Record<string, unknown> | null | undefined;
411
411
  }[], Error, {
412
- method: "manual" | "electronic" | "docusign" | "other";
412
+ method: "manual" | "other" | "electronic" | "docusign";
413
413
  signerName: string;
414
414
  id: string;
415
415
  contractId: string;
@@ -432,7 +432,7 @@ export declare function getLegalContractSignaturesQueryOptions(client: FetchWith
432
432
  metadata?: Record<string, unknown> | null | undefined;
433
433
  }[], readonly ["legal", "contracts", string, "signatures"]>, "queryFn"> & {
434
434
  queryFn?: import("@tanstack/react-query").QueryFunction<{
435
- method: "manual" | "electronic" | "docusign" | "other";
435
+ method: "manual" | "other" | "electronic" | "docusign";
436
436
  signerName: string;
437
437
  id: string;
438
438
  contractId: string;
@@ -457,7 +457,7 @@ export declare function getLegalContractSignaturesQueryOptions(client: FetchWith
457
457
  } & {
458
458
  queryKey: readonly ["legal", "contracts", string, "signatures"] & {
459
459
  [dataTagSymbol]: {
460
- method: "manual" | "electronic" | "docusign" | "other";
460
+ method: "manual" | "other" | "electronic" | "docusign";
461
461
  signerName: string;
462
462
  id: string;
463
463
  contractId: string;
package/dist/schemas.d.ts CHANGED
@@ -12,11 +12,11 @@ export declare const legalContractRecordSchema: z.ZodObject<{
12
12
  variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
13
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
14
  scope: z.ZodEnum<{
15
- other: "other";
16
15
  customer: "customer";
17
16
  supplier: "supplier";
18
17
  partner: "partner";
19
18
  channel: "channel";
19
+ other: "other";
20
20
  }>;
21
21
  status: z.ZodDefault<z.ZodEnum<{
22
22
  void: "void";
@@ -102,10 +102,10 @@ export declare const legalContractRecordSchema: z.ZodObject<{
102
102
  export type LegalContractRecord = z.infer<typeof legalContractRecordSchema>;
103
103
  export declare const legalContractSignatureRecordSchema: z.ZodObject<{
104
104
  method: z.ZodDefault<z.ZodEnum<{
105
+ other: "other";
105
106
  manual: "manual";
106
107
  electronic: "electronic";
107
108
  docusign: "docusign";
108
- other: "other";
109
109
  }>>;
110
110
  signerName: z.ZodString;
111
111
  id: z.ZodString;
@@ -196,11 +196,11 @@ export declare const legalContractTemplateRecordSchema: z.ZodObject<{
196
196
  name: z.ZodString;
197
197
  slug: z.ZodString;
198
198
  scope: z.ZodEnum<{
199
- other: "other";
200
199
  customer: "customer";
201
200
  supplier: "supplier";
202
201
  partner: "partner";
203
202
  channel: "channel";
203
+ other: "other";
204
204
  }>;
205
205
  language: z.ZodDefault<z.ZodString>;
206
206
  body: z.ZodString;
@@ -237,11 +237,11 @@ export declare const legalContractNumberSeriesRecordSchema: z.ZodObject<{
237
237
  monthly: "monthly";
238
238
  }>>;
239
239
  scope: z.ZodDefault<z.ZodEnum<{
240
- other: "other";
241
240
  customer: "customer";
242
241
  supplier: "supplier";
243
242
  partner: "partner";
244
243
  channel: "channel";
244
+ other: "other";
245
245
  }>>;
246
246
  isDefault: z.ZodDefault<z.ZodBoolean>;
247
247
  externalProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -413,8 +413,8 @@ export declare const legalTermRecordSchema: z.ZodObject<{
413
413
  required: z.ZodBoolean;
414
414
  sortOrder: z.ZodNumber;
415
415
  acceptanceStatus: z.ZodEnum<{
416
- pending: "pending";
417
416
  not_required: "not_required";
417
+ pending: "pending";
418
418
  accepted: "accepted";
419
419
  declined: "declined";
420
420
  }>;
@@ -431,11 +431,11 @@ export declare const legalContractListResponse: z.ZodObject<{
431
431
  variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
432
432
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
433
433
  scope: z.ZodEnum<{
434
- other: "other";
435
434
  customer: "customer";
436
435
  supplier: "supplier";
437
436
  partner: "partner";
438
437
  channel: "channel";
438
+ other: "other";
439
439
  }>;
440
440
  status: z.ZodDefault<z.ZodEnum<{
441
441
  void: "void";
@@ -528,11 +528,11 @@ export declare const legalContractSingleResponse: z.ZodObject<{
528
528
  variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
529
529
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
530
530
  scope: z.ZodEnum<{
531
- other: "other";
532
531
  customer: "customer";
533
532
  supplier: "supplier";
534
533
  partner: "partner";
535
534
  channel: "channel";
535
+ other: "other";
536
536
  }>;
537
537
  status: z.ZodDefault<z.ZodEnum<{
538
538
  void: "void";
@@ -619,10 +619,10 @@ export declare const legalContractSingleResponse: z.ZodObject<{
619
619
  export declare const legalContractSignatureListResponse: z.ZodObject<{
620
620
  data: z.ZodArray<z.ZodObject<{
621
621
  method: z.ZodDefault<z.ZodEnum<{
622
+ other: "other";
622
623
  manual: "manual";
623
624
  electronic: "electronic";
624
625
  docusign: "docusign";
625
- other: "other";
626
626
  }>>;
627
627
  signerName: z.ZodString;
628
628
  id: z.ZodString;
@@ -728,11 +728,11 @@ export declare const legalBookingContractGenerateDocumentResponse: z.ZodObject<{
728
728
  variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
729
729
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
730
730
  scope: z.ZodEnum<{
731
- other: "other";
732
731
  customer: "customer";
733
732
  supplier: "supplier";
734
733
  partner: "partner";
735
734
  channel: "channel";
735
+ other: "other";
736
736
  }>;
737
737
  status: z.ZodDefault<z.ZodEnum<{
738
738
  void: "void";
@@ -848,11 +848,11 @@ export declare const legalContractTemplateListResponse: z.ZodObject<{
848
848
  name: z.ZodString;
849
849
  slug: z.ZodString;
850
850
  scope: z.ZodEnum<{
851
- other: "other";
852
851
  customer: "customer";
853
852
  supplier: "supplier";
854
853
  partner: "partner";
855
854
  channel: "channel";
855
+ other: "other";
856
856
  }>;
857
857
  language: z.ZodDefault<z.ZodString>;
858
858
  body: z.ZodString;
@@ -875,11 +875,11 @@ export declare const legalContractTemplateSingleResponse: z.ZodObject<{
875
875
  name: z.ZodString;
876
876
  slug: z.ZodString;
877
877
  scope: z.ZodEnum<{
878
- other: "other";
879
878
  customer: "customer";
880
879
  supplier: "supplier";
881
880
  partner: "partner";
882
881
  channel: "channel";
882
+ other: "other";
883
883
  }>;
884
884
  language: z.ZodDefault<z.ZodString>;
885
885
  body: z.ZodString;
@@ -918,11 +918,11 @@ export declare const legalContractNumberSeriesListResponse: z.ZodObject<{
918
918
  monthly: "monthly";
919
919
  }>>;
920
920
  scope: z.ZodDefault<z.ZodEnum<{
921
- other: "other";
922
921
  customer: "customer";
923
922
  supplier: "supplier";
924
923
  partner: "partner";
925
924
  channel: "channel";
925
+ other: "other";
926
926
  }>>;
927
927
  isDefault: z.ZodDefault<z.ZodBoolean>;
928
928
  externalProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -947,11 +947,11 @@ export declare const legalContractNumberSeriesSingleResponse: z.ZodObject<{
947
947
  monthly: "monthly";
948
948
  }>>;
949
949
  scope: z.ZodDefault<z.ZodEnum<{
950
- other: "other";
951
950
  customer: "customer";
952
951
  supplier: "supplier";
953
952
  partner: "partner";
954
953
  channel: "channel";
954
+ other: "other";
955
955
  }>>;
956
956
  isDefault: z.ZodDefault<z.ZodBoolean>;
957
957
  externalProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1230,8 +1230,8 @@ export declare const legalTermListResponse: z.ZodObject<{
1230
1230
  required: z.ZodBoolean;
1231
1231
  sortOrder: z.ZodNumber;
1232
1232
  acceptanceStatus: z.ZodEnum<{
1233
- pending: "pending";
1234
1233
  not_required: "not_required";
1234
+ pending: "pending";
1235
1235
  accepted: "accepted";
1236
1236
  declined: "declined";
1237
1237
  }>;
@@ -1279,8 +1279,8 @@ export declare const legalTermSingleResponse: z.ZodObject<{
1279
1279
  required: z.ZodBoolean;
1280
1280
  sortOrder: z.ZodNumber;
1281
1281
  acceptanceStatus: z.ZodEnum<{
1282
- pending: "pending";
1283
1282
  not_required: "not_required";
1283
+ pending: "pending";
1284
1284
  accepted: "accepted";
1285
1285
  declined: "declined";
1286
1286
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/legal-react",
3
- "version": "0.136.2",
3
+ "version": "0.137.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,13 +75,13 @@
75
75
  "react-dom": "^19.0.0",
76
76
  "react-hook-form": "^7.60.0",
77
77
  "zod": "^4.0.0",
78
- "@voyant-travel/admin": "^0.115.2",
79
- "@voyant-travel/bookings-react": "^0.136.2",
80
- "@voyant-travel/relationships-react": "^0.136.1",
81
- "@voyant-travel/distribution-react": "^0.126.2",
82
- "@voyant-travel/legal": "^0.136.2",
83
- "@voyant-travel/commerce-react": "^0.18.2",
84
- "@voyant-travel/inventory-react": "^0.18.2",
78
+ "@voyant-travel/admin": "^0.115.3",
79
+ "@voyant-travel/bookings-react": "^0.137.1",
80
+ "@voyant-travel/relationships-react": "^0.137.1",
81
+ "@voyant-travel/distribution-react": "^0.127.1",
82
+ "@voyant-travel/legal": "^0.137.1",
83
+ "@voyant-travel/commerce-react": "^0.19.0",
84
+ "@voyant-travel/inventory-react": "^0.19.1",
85
85
  "@voyant-travel/ui": "^0.108.2"
86
86
  },
87
87
  "peerDependenciesMeta": {
@@ -111,9 +111,9 @@
111
111
  }
112
112
  },
113
113
  "dependencies": {
114
- "@voyant-travel/i18n": "^0.109.0",
115
114
  "@voyant-travel/react": "^0.104.1",
116
115
  "@voyant-travel/types": "^0.106.0",
116
+ "@voyant-travel/i18n": "^0.109.0",
117
117
  "@voyant-travel/utils": "^0.105.4"
118
118
  },
119
119
  "devDependencies": {
@@ -128,18 +128,18 @@
128
128
  "typescript": "^6.0.2",
129
129
  "vitest": "^4.1.2",
130
130
  "zod": "^4.3.6",
131
- "@voyant-travel/admin": "^0.115.2",
132
- "@voyant-travel/bookings-react": "^0.136.2",
133
- "@voyant-travel/relationships-react": "^0.136.1",
134
- "@voyant-travel/distribution-react": "^0.126.2",
131
+ "@voyant-travel/admin": "^0.115.3",
135
132
  "@voyant-travel/i18n": "^0.109.0",
136
- "@voyant-travel/legal": "^0.136.2",
137
- "@voyant-travel/commerce-react": "^0.18.2",
138
- "@voyant-travel/inventory-react": "^0.18.2",
133
+ "@voyant-travel/distribution-react": "^0.127.1",
134
+ "@voyant-travel/bookings-react": "^0.137.1",
135
+ "@voyant-travel/relationships-react": "^0.137.1",
139
136
  "@voyant-travel/react": "^0.104.1",
140
- "@voyant-travel/ui": "^0.108.2",
137
+ "@voyant-travel/inventory-react": "^0.19.1",
141
138
  "@voyant-travel/utils": "^0.105.4",
142
- "@voyant-travel/voyant-typescript-config": "^0.1.0"
139
+ "@voyant-travel/commerce-react": "^0.19.0",
140
+ "@voyant-travel/ui": "^0.108.2",
141
+ "@voyant-travel/voyant-typescript-config": "^0.1.0",
142
+ "@voyant-travel/legal": "^0.137.1"
143
143
  },
144
144
  "files": [
145
145
  "dist",
@@ -151,7 +151,7 @@
151
151
  "scripts": {
152
152
  "build": "tsc -p tsconfig.build.json",
153
153
  "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
154
- "typecheck": "tsc --noEmit",
154
+ "typecheck": "tsc -p tsconfig.typecheck.json",
155
155
  "lint": "biome check src/",
156
156
  "test": "vitest run --passWithNoTests"
157
157
  },