@greensecurity/javascript-sdk 0.44.0-beta.29 → 0.44.0-beta.30

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.
Files changed (146) hide show
  1. package/REACT_QUERY.md +15 -31
  2. package/README.md +6 -0
  3. package/dist/commonjs/__tests__/vendors.test.js +31 -0
  4. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +32 -3
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/funcs/vendorsGetVendorPaymentResponsibility.d.ts +23 -0
  8. package/dist/commonjs/funcs/vendorsGetVendorPaymentResponsibility.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/vendorsGetVendorPaymentResponsibility.js +129 -0
  10. package/dist/commonjs/funcs/vendorsGetVendorPaymentResponsibility.js.map +1 -0
  11. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +1 -1
  12. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +1 -1
  13. package/dist/commonjs/funcs/vendorsUpdateVendorPaymentResponsibility.d.ts +24 -0
  14. package/dist/commonjs/funcs/vendorsUpdateVendorPaymentResponsibility.d.ts.map +1 -0
  15. package/dist/commonjs/funcs/vendorsUpdateVendorPaymentResponsibility.js +131 -0
  16. package/dist/commonjs/funcs/vendorsUpdateVendorPaymentResponsibility.js.map +1 -0
  17. package/dist/commonjs/lib/config.d.ts +3 -3
  18. package/dist/commonjs/lib/config.js +3 -3
  19. package/dist/commonjs/models/components/index.d.ts +1 -0
  20. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/index.js +1 -0
  22. package/dist/commonjs/models/components/index.js.map +1 -1
  23. package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.d.ts +70 -0
  24. package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.d.ts.map +1 -0
  25. package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.js +71 -0
  26. package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.js.map +1 -0
  27. package/dist/commonjs/models/operations/getvendorpaymentresponsibility.d.ts +34 -0
  28. package/dist/commonjs/models/operations/getvendorpaymentresponsibility.d.ts.map +1 -0
  29. package/dist/commonjs/models/operations/getvendorpaymentresponsibility.js +70 -0
  30. package/dist/commonjs/models/operations/getvendorpaymentresponsibility.js.map +1 -0
  31. package/dist/commonjs/models/operations/index.d.ts +2 -0
  32. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/index.js +2 -0
  34. package/dist/commonjs/models/operations/index.js.map +1 -1
  35. package/dist/commonjs/models/operations/updatevendordetails.d.ts +10 -0
  36. package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/updatevendordetails.js +4 -0
  38. package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
  39. package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.d.ts +74 -0
  40. package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.d.ts.map +1 -0
  41. package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.js +94 -0
  42. package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.js.map +1 -0
  43. package/dist/commonjs/react-query/index.d.ts +2 -0
  44. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  45. package/dist/commonjs/react-query/index.js +2 -0
  46. package/dist/commonjs/react-query/index.js.map +1 -1
  47. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.core.d.ts +12 -0
  48. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.core.d.ts.map +1 -0
  49. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.core.js +39 -0
  50. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.core.js.map +1 -0
  51. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.d.ts +35 -0
  52. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.d.ts.map +1 -0
  53. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.js +75 -0
  54. package/dist/commonjs/react-query/vendorsGetVendorPaymentResponsibility.js.map +1 -0
  55. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +1 -1
  56. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +1 -1
  57. package/dist/commonjs/react-query/vendorsUpdateVendorPaymentResponsibility.d.ts +33 -0
  58. package/dist/commonjs/react-query/vendorsUpdateVendorPaymentResponsibility.d.ts.map +1 -0
  59. package/dist/commonjs/react-query/vendorsUpdateVendorPaymentResponsibility.js +55 -0
  60. package/dist/commonjs/react-query/vendorsUpdateVendorPaymentResponsibility.js.map +1 -0
  61. package/dist/commonjs/sdk/vendors.d.ts +22 -1
  62. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  63. package/dist/commonjs/sdk/vendors.js +28 -1
  64. package/dist/commonjs/sdk/vendors.js.map +1 -1
  65. package/dist/esm/__tests__/vendors.test.js +31 -0
  66. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  67. package/dist/esm/__tests__/zones.test.js +32 -3
  68. package/dist/esm/__tests__/zones.test.js.map +1 -1
  69. package/dist/esm/funcs/vendorsGetVendorPaymentResponsibility.d.ts +23 -0
  70. package/dist/esm/funcs/vendorsGetVendorPaymentResponsibility.d.ts.map +1 -0
  71. package/dist/esm/funcs/vendorsGetVendorPaymentResponsibility.js +93 -0
  72. package/dist/esm/funcs/vendorsGetVendorPaymentResponsibility.js.map +1 -0
  73. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +1 -1
  74. package/dist/esm/funcs/vendorsUpdateVendorDetails.js +1 -1
  75. package/dist/esm/funcs/vendorsUpdateVendorPaymentResponsibility.d.ts +24 -0
  76. package/dist/esm/funcs/vendorsUpdateVendorPaymentResponsibility.d.ts.map +1 -0
  77. package/dist/esm/funcs/vendorsUpdateVendorPaymentResponsibility.js +95 -0
  78. package/dist/esm/funcs/vendorsUpdateVendorPaymentResponsibility.js.map +1 -0
  79. package/dist/esm/lib/config.d.ts +3 -3
  80. package/dist/esm/lib/config.js +3 -3
  81. package/dist/esm/models/components/index.d.ts +1 -0
  82. package/dist/esm/models/components/index.d.ts.map +1 -1
  83. package/dist/esm/models/components/index.js +1 -0
  84. package/dist/esm/models/components/index.js.map +1 -1
  85. package/dist/esm/models/components/vendorpaymentresponsibilityassignments.d.ts +70 -0
  86. package/dist/esm/models/components/vendorpaymentresponsibilityassignments.d.ts.map +1 -0
  87. package/dist/esm/models/components/vendorpaymentresponsibilityassignments.js +34 -0
  88. package/dist/esm/models/components/vendorpaymentresponsibilityassignments.js.map +1 -0
  89. package/dist/esm/models/operations/getvendorpaymentresponsibility.d.ts +34 -0
  90. package/dist/esm/models/operations/getvendorpaymentresponsibility.d.ts.map +1 -0
  91. package/dist/esm/models/operations/getvendorpaymentresponsibility.js +32 -0
  92. package/dist/esm/models/operations/getvendorpaymentresponsibility.js.map +1 -0
  93. package/dist/esm/models/operations/index.d.ts +2 -0
  94. package/dist/esm/models/operations/index.d.ts.map +1 -1
  95. package/dist/esm/models/operations/index.js +2 -0
  96. package/dist/esm/models/operations/index.js.map +1 -1
  97. package/dist/esm/models/operations/updatevendordetails.d.ts +10 -0
  98. package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
  99. package/dist/esm/models/operations/updatevendordetails.js +4 -0
  100. package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
  101. package/dist/esm/models/operations/updatevendorpaymentresponsibility.d.ts +74 -0
  102. package/dist/esm/models/operations/updatevendorpaymentresponsibility.d.ts.map +1 -0
  103. package/dist/esm/models/operations/updatevendorpaymentresponsibility.js +55 -0
  104. package/dist/esm/models/operations/updatevendorpaymentresponsibility.js.map +1 -0
  105. package/dist/esm/react-query/index.d.ts +2 -0
  106. package/dist/esm/react-query/index.d.ts.map +1 -1
  107. package/dist/esm/react-query/index.js +2 -0
  108. package/dist/esm/react-query/index.js.map +1 -1
  109. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.core.d.ts +12 -0
  110. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.core.d.ts.map +1 -0
  111. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.core.js +34 -0
  112. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.core.js.map +1 -0
  113. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.d.ts +35 -0
  114. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.d.ts.map +1 -0
  115. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.js +65 -0
  116. package/dist/esm/react-query/vendorsGetVendorPaymentResponsibility.js.map +1 -0
  117. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +1 -1
  118. package/dist/esm/react-query/vendorsUpdateVendorDetails.js +1 -1
  119. package/dist/esm/react-query/vendorsUpdateVendorPaymentResponsibility.d.ts +33 -0
  120. package/dist/esm/react-query/vendorsUpdateVendorPaymentResponsibility.d.ts.map +1 -0
  121. package/dist/esm/react-query/vendorsUpdateVendorPaymentResponsibility.js +50 -0
  122. package/dist/esm/react-query/vendorsUpdateVendorPaymentResponsibility.js.map +1 -0
  123. package/dist/esm/sdk/vendors.d.ts +22 -1
  124. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  125. package/dist/esm/sdk/vendors.js +28 -1
  126. package/dist/esm/sdk/vendors.js.map +1 -1
  127. package/jsr.json +1 -1
  128. package/package.json +2 -2
  129. package/src/__tests__/vendors.test.ts +39 -0
  130. package/src/__tests__/zones.test.ts +32 -3
  131. package/src/funcs/vendorsGetVendorPaymentResponsibility.ts +189 -0
  132. package/src/funcs/vendorsUpdateVendorDetails.ts +1 -1
  133. package/src/funcs/vendorsUpdateVendorPaymentResponsibility.ts +191 -0
  134. package/src/lib/config.ts +3 -3
  135. package/src/models/components/index.ts +1 -0
  136. package/src/models/components/vendorpaymentresponsibilityassignments.ts +113 -0
  137. package/src/models/operations/getvendorpaymentresponsibility.ts +93 -0
  138. package/src/models/operations/index.ts +2 -0
  139. package/src/models/operations/updatevendordetails.ts +14 -0
  140. package/src/models/operations/updatevendorpaymentresponsibility.ts +173 -0
  141. package/src/react-query/index.ts +2 -0
  142. package/src/react-query/vendorsGetVendorPaymentResponsibility.core.ts +78 -0
  143. package/src/react-query/vendorsGetVendorPaymentResponsibility.ts +156 -0
  144. package/src/react-query/vendorsUpdateVendorDetails.ts +1 -1
  145. package/src/react-query/vendorsUpdateVendorPaymentResponsibility.ts +119 -0
  146. package/src/sdk/vendors.ts +48 -1
@@ -0,0 +1,74 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type UpdateVendorPaymentResponsibilityRequestBody = {
6
+ /**
7
+ * User ID responsible for Credentialing Subscription & Expediting payments. Pass `null` to reset responsibility to the vendor.
8
+ */
9
+ credentialingSubscriptionUserId?: number | null | undefined;
10
+ /**
11
+ * User ID responsible for Scrubs Subscription payments. Pass `null` to reset responsibility to the vendor.
12
+ */
13
+ scrubsSubscriptionUserId?: number | null | undefined;
14
+ /**
15
+ * User ID responsible for Scrub Credits payments. Pass `null` to reset responsibility to the vendor.
16
+ */
17
+ scrubCreditsUserId?: number | null | undefined;
18
+ /**
19
+ * User ID responsible for Initial Hard Badge payments. Pass `null` to reset responsibility to the vendor.
20
+ */
21
+ hardBadgeInitialUserId?: number | null | undefined;
22
+ /**
23
+ * User ID responsible for Additional Hard Badge payments. Pass `null` to reset responsibility to the vendor.
24
+ */
25
+ hardBadgeExtraUserId?: number | null | undefined;
26
+ /**
27
+ * User ID responsible for Other Invoice payments. Pass `null` to reset responsibility to the vendor.
28
+ */
29
+ otherInvoicesUserId?: number | null | undefined;
30
+ };
31
+ export type UpdateVendorPaymentResponsibilityRequest = {
32
+ /**
33
+ * ID of the vendor rep.
34
+ */
35
+ vendorId: number;
36
+ requestBody: UpdateVendorPaymentResponsibilityRequestBody;
37
+ };
38
+ /**
39
+ * The request was successful, and the server has returned the updated payment responsibility record.
40
+ */
41
+ export type UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk = {
42
+ /**
43
+ * Records which party (vendor or company manager) is responsible for each
44
+ *
45
+ * @remarks
46
+ * payment category for a given vendor–company relationship. A `null`
47
+ * `_user_id` field means responsibility defaults to the vendor.
48
+ */
49
+ paymentResponsibility?: components.VendorPaymentResponsibilityAssignments | undefined;
50
+ };
51
+ /** @internal */
52
+ export type UpdateVendorPaymentResponsibilityRequestBody$Outbound = {
53
+ credentialing_subscription_user_id?: number | null | undefined;
54
+ scrubs_subscription_user_id?: number | null | undefined;
55
+ scrub_credits_user_id?: number | null | undefined;
56
+ hard_badge_initial_user_id?: number | null | undefined;
57
+ hard_badge_extra_user_id?: number | null | undefined;
58
+ other_invoices_user_id?: number | null | undefined;
59
+ };
60
+ /** @internal */
61
+ export declare const UpdateVendorPaymentResponsibilityRequestBody$outboundSchema: z.ZodType<UpdateVendorPaymentResponsibilityRequestBody$Outbound, z.ZodTypeDef, UpdateVendorPaymentResponsibilityRequestBody>;
62
+ export declare function updateVendorPaymentResponsibilityRequestBodyToJSON(updateVendorPaymentResponsibilityRequestBody: UpdateVendorPaymentResponsibilityRequestBody): string;
63
+ /** @internal */
64
+ export type UpdateVendorPaymentResponsibilityRequest$Outbound = {
65
+ vendor_id: number;
66
+ RequestBody: UpdateVendorPaymentResponsibilityRequestBody$Outbound;
67
+ };
68
+ /** @internal */
69
+ export declare const UpdateVendorPaymentResponsibilityRequest$outboundSchema: z.ZodType<UpdateVendorPaymentResponsibilityRequest$Outbound, z.ZodTypeDef, UpdateVendorPaymentResponsibilityRequest>;
70
+ export declare function updateVendorPaymentResponsibilityRequestToJSON(updateVendorPaymentResponsibilityRequest: UpdateVendorPaymentResponsibilityRequest): string;
71
+ /** @internal */
72
+ export declare const UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk$inboundSchema: z.ZodType<UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk, z.ZodTypeDef, unknown>;
73
+ export declare function updateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOkFromJSON(jsonString: string): SafeParseResult<UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk, SDKValidationError>;
74
+ //# sourceMappingURL=updatevendorpaymentresponsibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatevendorpaymentresponsibility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatevendorpaymentresponsibility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,4CAA4C,CAAC;CAC3D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oEAAo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,MAAM,GACjB,eAAe,CAChB,oEAAoE,EACpE,kBAAkB,CACnB,CAQA"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk$inboundSchema = exports.UpdateVendorPaymentResponsibilityRequest$outboundSchema = exports.UpdateVendorPaymentResponsibilityRequestBody$outboundSchema = void 0;
40
+ exports.updateVendorPaymentResponsibilityRequestBodyToJSON = updateVendorPaymentResponsibilityRequestBodyToJSON;
41
+ exports.updateVendorPaymentResponsibilityRequestToJSON = updateVendorPaymentResponsibilityRequestToJSON;
42
+ exports.updateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOkFromJSON = updateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOkFromJSON;
43
+ const z = __importStar(require("zod/v3"));
44
+ const primitives_js_1 = require("../../lib/primitives.js");
45
+ const schemas_js_1 = require("../../lib/schemas.js");
46
+ const types = __importStar(require("../../types/primitives.js"));
47
+ const components = __importStar(require("../components/index.js"));
48
+ /** @internal */
49
+ exports.UpdateVendorPaymentResponsibilityRequestBody$outboundSchema = z.object({
50
+ credentialingSubscriptionUserId: z.nullable(z.number().int()).optional(),
51
+ scrubsSubscriptionUserId: z.nullable(z.number().int()).optional(),
52
+ scrubCreditsUserId: z.nullable(z.number().int()).optional(),
53
+ hardBadgeInitialUserId: z.nullable(z.number().int()).optional(),
54
+ hardBadgeExtraUserId: z.nullable(z.number().int()).optional(),
55
+ otherInvoicesUserId: z.nullable(z.number().int()).optional(),
56
+ }).transform((v) => {
57
+ return (0, primitives_js_1.remap)(v, {
58
+ credentialingSubscriptionUserId: "credentialing_subscription_user_id",
59
+ scrubsSubscriptionUserId: "scrubs_subscription_user_id",
60
+ scrubCreditsUserId: "scrub_credits_user_id",
61
+ hardBadgeInitialUserId: "hard_badge_initial_user_id",
62
+ hardBadgeExtraUserId: "hard_badge_extra_user_id",
63
+ otherInvoicesUserId: "other_invoices_user_id",
64
+ });
65
+ });
66
+ function updateVendorPaymentResponsibilityRequestBodyToJSON(updateVendorPaymentResponsibilityRequestBody) {
67
+ return JSON.stringify(exports.UpdateVendorPaymentResponsibilityRequestBody$outboundSchema.parse(updateVendorPaymentResponsibilityRequestBody));
68
+ }
69
+ /** @internal */
70
+ exports.UpdateVendorPaymentResponsibilityRequest$outboundSchema = z.object({
71
+ vendorId: z.number().int(),
72
+ requestBody: z.lazy(() => exports.UpdateVendorPaymentResponsibilityRequestBody$outboundSchema),
73
+ }).transform((v) => {
74
+ return (0, primitives_js_1.remap)(v, {
75
+ vendorId: "vendor_id",
76
+ requestBody: "RequestBody",
77
+ });
78
+ });
79
+ function updateVendorPaymentResponsibilityRequestToJSON(updateVendorPaymentResponsibilityRequest) {
80
+ return JSON.stringify(exports.UpdateVendorPaymentResponsibilityRequest$outboundSchema.parse(updateVendorPaymentResponsibilityRequest));
81
+ }
82
+ /** @internal */
83
+ exports.UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk$inboundSchema = z.object({
84
+ payment_responsibility: types.optional(components.VendorPaymentResponsibilityAssignments$inboundSchema),
85
+ }).transform((v) => {
86
+ return (0, primitives_js_1.remap)(v, {
87
+ "payment_responsibility": "paymentResponsibility",
88
+ });
89
+ });
90
+ function updateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOkFromJSON(jsonString) {
91
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk$inboundSchema
92
+ .parse(JSON.parse(x)), `Failed to parse 'UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk' from JSON`);
93
+ }
94
+ //# sourceMappingURL=updatevendorpaymentresponsibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatevendorpaymentresponsibility.js","sourceRoot":"","sources":["../../../../src/models/operations/updatevendorpaymentresponsibility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgGH,gHASC;AAyBD,wGASC;AAkBD,oKAaC;AAxKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AACnD,mEAAqD;AAiErD,gBAAgB;AACH,QAAA,2DAA2D,GAKlE,CAAC,CAAC,MAAM,CAAC;IACX,+BAA+B,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxE,wBAA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AAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8CAA8C,CAC5D,wCAC0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,+DAAuD,CAAC,KAAK,CAC3D,wCAAwC,CACzC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kFAAkF,GAKzF,CAAC,CAAC,MAAM,CAAC;IACX,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CACpC,UAAU,CAAC,oDAAoD,CAChE;CACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,wBAAwB,EAAE,uBAAuB;KAClD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAgB,4EAA4E,CAC1F,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0FAAkF;SAC/E,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzB,kGAAkG,CACnG,CAAC;AACJ,CAAC"}
@@ -104,6 +104,7 @@ export * from "./vendorsGetVendorCredentialFile.js";
104
104
  export * from "./vendorsGetVendorInvoiceDetails.js";
105
105
  export * from "./vendorsGetVendorInvoiceReceipt.js";
106
106
  export * from "./vendorsGetVendorLegalName.js";
107
+ export * from "./vendorsGetVendorPaymentResponsibility.js";
107
108
  export * from "./vendorsGetVendorsDetails.js";
108
109
  export * from "./vendorsGetVendorsExportStatus.js";
109
110
  export * from "./vendorsGetVendorUploadHistory.js";
@@ -131,6 +132,7 @@ export * from "./vendorsUpdateVendorCredentialFile.js";
131
132
  export * from "./vendorsUpdateVendorCustomField.js";
132
133
  export * from "./vendorsUpdateVendorDetails.js";
133
134
  export * from "./vendorsUpdateVendorManagedByCompany.js";
135
+ export * from "./vendorsUpdateVendorPaymentResponsibility.js";
134
136
  export * from "./vendorsUpdateVendorScrubDetails.js";
135
137
  export * from "./vendorsVendorsExport.js";
136
138
  export * from "./webhooksGetWebhookEndpoint.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react-query/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC/E,cAAc,aAAa,CAAC;AAE5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,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C;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sDAAsD,CAAC;AACrE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC"}
@@ -126,6 +126,7 @@ __exportStar(require("./vendorsGetVendorCredentialFile.js"), exports);
126
126
  __exportStar(require("./vendorsGetVendorInvoiceDetails.js"), exports);
127
127
  __exportStar(require("./vendorsGetVendorInvoiceReceipt.js"), exports);
128
128
  __exportStar(require("./vendorsGetVendorLegalName.js"), exports);
129
+ __exportStar(require("./vendorsGetVendorPaymentResponsibility.js"), exports);
129
130
  __exportStar(require("./vendorsGetVendorsDetails.js"), exports);
130
131
  __exportStar(require("./vendorsGetVendorsExportStatus.js"), exports);
131
132
  __exportStar(require("./vendorsGetVendorUploadHistory.js"), exports);
@@ -153,6 +154,7 @@ __exportStar(require("./vendorsUpdateVendorCredentialFile.js"), exports);
153
154
  __exportStar(require("./vendorsUpdateVendorCustomField.js"), exports);
154
155
  __exportStar(require("./vendorsUpdateVendorDetails.js"), exports);
155
156
  __exportStar(require("./vendorsUpdateVendorManagedByCompany.js"), exports);
157
+ __exportStar(require("./vendorsUpdateVendorPaymentResponsibility.js"), exports);
156
158
  __exportStar(require("./vendorsUpdateVendorScrubDetails.js"), exports);
157
159
  __exportStar(require("./vendorsVendorsExport.js"), exports);
158
160
  __exportStar(require("./webhooksGetWebhookEndpoint.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react-query/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,6CAA+E;AAAtE,oHAAA,qBAAqB,OAAA;AAAE,sHAAA,uBAAuB,OAAA;AACvD,8CAA4B;AAE5B,wDAAsC;AACtC,8DAA4C;AAC5C,kEAAgD;AAChD,2DAAyC;AACzC,uEAAqD;AACrD,mEAAiD;AACjD,oEAAkD;AAClD,sEAAoD;AACpD,gEAA8C;AAC9C,sEAAoD;AACpD,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC;AACzC,wEAAsD;AACtD,oEAAkD;AAClD,sEAAoD;AACpD,yDAAuC;AACvC,oEAAkD;AAClD,uEAAqD;AACrD,gEAA8C;AAC9C,2EAAyD;AACzD,uEAAqD;AACrD,6DAA2C;AAC3C,sEAAoD;AACpD,0DAAwC;AACxC,uEAAqD;AACrD,8DAA4C;AAC5C,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,gEAA8C;AAC9C,oEAAkD;AAClD,gFAA8D;AAC9D,gFAA8D;AAC9D,0FAAwE;AACxE,kFAAgE;AAChE,kFAAgE;AAChE,0EAAwD;AACxD,2FAAyE;AACzE,gEAA8C;AAC9C,mFAAiE;AACjE,gFAA8D;AAC9D,wEAAsD;AACtD,mFAAiE;AACjE,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,wEAAsD;AACtD,kFAAgE;AAChE,0DAAwC;AACxC,2DAAyC;AACzC,2DAAy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AACzE,wEAAsD;AACtD,yEAAuD;AACvD,4DAA0C;AAC1C,4EAA0D;AAC1D,oEAAkD;AAClD,2EAAyD;AACzD,gEAA8C;AAC9C,6EAA2D;AAC3D,kEAAgD;AAChD,0EAAwD;AACxD,gEAA8C;AAC9C,iEAA+C;AAC/C,gEAA8C;AAC9C,+EAA6D;AAC7D,gEAA8C;AAC9C,2DAAyC;AACzC,kEAAgD;AAChD,uEAAqD;AACrD,sEAAoD;AACpD,yEAAuD;AACvD,2EAAyD;AACzD,oEAAkD;AAClD,oEAAkD;AAClD,iFAA+D;AAC/D,8DAA4C;AAC5C,yEAAuD;AACvD,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD;AACpD,iEAA+C;AAC/C,6EAA2D;AAC3D,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AACnD,iFAA+D;AAC/D,+EAA6D;AAC7D,wEAAsD;AACtD,0EAAwD;AACxD,oEAAkD;AAClD,gEAA8C;AAC9C,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,kEAAgD;AAChD,2EAAyD;AACzD,0DAAwC;AACxC,qEAAmD;AACnD,sEAAoD;AACpD,uEAAqD;AACrD,8DAA4C;AAC5C,mEAAiD;AACjD,+DAA6C;AAC7C,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,sEAAoD;AACpD,kEAAgD;AAChD,2EAAyD;AACzD,gFAA8D;AAC9D,uEAAqD;AACrD,4DAA0C;AAC1C,kEAAgD;AAChD,uEAAqD;AACrD,uFAAqE;AACrE,4DAA0C;AAC1C,sEAAoD;AACpD,gEAA8C"}
@@ -0,0 +1,12 @@
1
+ import { QueryClient, QueryFunctionContext, QueryKey } from "@tanstack/react-query";
2
+ import { GreenSecurityCore } from "../core.js";
3
+ import { RequestOptions } from "../lib/sdks.js";
4
+ import * as operations from "../models/operations/index.js";
5
+ export type VendorsGetVendorPaymentResponsibilityQueryData = operations.GetVendorPaymentResponsibilityGetVendorPaymentResponsibilityOk;
6
+ export declare function prefetchVendorsGetVendorPaymentResponsibility(queryClient: QueryClient, client$: GreenSecurityCore, request: operations.GetVendorPaymentResponsibilityRequest, options?: RequestOptions): Promise<void>;
7
+ export declare function buildVendorsGetVendorPaymentResponsibilityQuery(client$: GreenSecurityCore, request: operations.GetVendorPaymentResponsibilityRequest, options?: RequestOptions): {
8
+ queryKey: QueryKey;
9
+ queryFn: (context: QueryFunctionContext) => Promise<VendorsGetVendorPaymentResponsibilityQueryData>;
10
+ };
11
+ export declare function queryKeyVendorsGetVendorPaymentResponsibility(vendorId: number): QueryKey;
12
+ //# sourceMappingURL=vendorsGetVendorPaymentResponsibility.core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsGetVendorPaymentResponsibility.core.d.ts","sourceRoot":"","sources":["../../../src/react-query/vendorsGetVendorPaymentResponsibility.core.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,MAAM,MAAM,8CAA8C,GACxD,UAAU,CAAC,8DAA8D,CAAC;AAE5E,wBAAgB,6CAA6C,CAC3D,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,+CAA+C,CAC7D,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,CACP,OAAO,EAAE,oBAAoB,KAC1B,OAAO,CAAC,8CAA8C,CAAC,CAAC;CAC9D,CAwBA;AAED,wBAAgB,6CAA6C,CAC3D,QAAQ,EAAE,MAAM,GACf,QAAQ,CAOV"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.prefetchVendorsGetVendorPaymentResponsibility = prefetchVendorsGetVendorPaymentResponsibility;
7
+ exports.buildVendorsGetVendorPaymentResponsibilityQuery = buildVendorsGetVendorPaymentResponsibilityQuery;
8
+ exports.queryKeyVendorsGetVendorPaymentResponsibility = queryKeyVendorsGetVendorPaymentResponsibility;
9
+ const vendorsGetVendorPaymentResponsibility_js_1 = require("../funcs/vendorsGetVendorPaymentResponsibility.js");
10
+ const primitives_js_1 = require("../lib/primitives.js");
11
+ const fp_js_1 = require("../types/fp.js");
12
+ function prefetchVendorsGetVendorPaymentResponsibility(queryClient, client$, request, options) {
13
+ return queryClient.prefetchQuery({
14
+ ...buildVendorsGetVendorPaymentResponsibilityQuery(client$, request, options),
15
+ });
16
+ }
17
+ function buildVendorsGetVendorPaymentResponsibilityQuery(client$, request, options) {
18
+ return {
19
+ queryKey: queryKeyVendorsGetVendorPaymentResponsibility(request.vendorId),
20
+ queryFn: async function vendorsGetVendorPaymentResponsibilityQueryFn(ctx) {
21
+ const sig = (0, primitives_js_1.combineSignals)(ctx.signal, options?.signal, options?.fetchOptions?.signal);
22
+ const mergedOptions = {
23
+ ...options?.fetchOptions,
24
+ ...options,
25
+ signal: sig,
26
+ };
27
+ return (0, fp_js_1.unwrapAsync)((0, vendorsGetVendorPaymentResponsibility_js_1.vendorsGetVendorPaymentResponsibility)(client$, request, mergedOptions));
28
+ },
29
+ };
30
+ }
31
+ function queryKeyVendorsGetVendorPaymentResponsibility(vendorId) {
32
+ return [
33
+ "@greensecurity/javascript-sdk",
34
+ "vendors",
35
+ "getVendorPaymentResponsibility",
36
+ vendorId,
37
+ ];
38
+ }
39
+ //# sourceMappingURL=vendorsGetVendorPaymentResponsibility.core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsGetVendorPaymentResponsibility.core.js","sourceRoot":"","sources":["../../../src/react-query/vendorsGetVendorPaymentResponsibility.core.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAgBH,sGAaC;AAED,0GAiCC;AAED,sGASC;AAnED,gHAA0G;AAC1G,wDAAsD;AAGtD,0CAA6C;AAI7C,SAAgB,6CAA6C,CAC3D,WAAwB,EACxB,OAA0B,EAC1B,OAAyD,EACzD,OAAwB;IAExB,OAAO,WAAW,CAAC,aAAa,CAAC;QAC/B,GAAG,+CAA+C,CAChD,OAAO,EACP,OAAO,EACP,OAAO,CACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,+CAA+C,CAC7D,OAA0B,EAC1B,OAAyD,EACzD,OAAwB;IAOxB,OAAO;QACL,QAAQ,EAAE,6CAA6C,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzE,OAAO,EAAE,KAAK,UAAU,4CAA4C,CAClE,GAAG;YAEH,MAAM,GAAG,GAAG,IAAA,8BAAc,EACxB,GAAG,CAAC,MAAM,EACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B,CAAC;YACF,MAAM,aAAa,GAAG;gBACpB,GAAG,OAAO,EAAE,YAAY;gBACxB,GAAG,OAAO;gBACV,MAAM,EAAE,GAAG;aACZ,CAAC;YAEF,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAgB,6CAA6C,CAC3D,QAAgB;IAEhB,OAAO;QACL,+BAA+B;QAC/B,SAAS;QACT,gCAAgC;QAChC,QAAQ;KACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
2
+ import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
9
+ import { buildVendorsGetVendorPaymentResponsibilityQuery, prefetchVendorsGetVendorPaymentResponsibility, queryKeyVendorsGetVendorPaymentResponsibility, VendorsGetVendorPaymentResponsibilityQueryData } from "./vendorsGetVendorPaymentResponsibility.core.js";
10
+ export { buildVendorsGetVendorPaymentResponsibilityQuery, prefetchVendorsGetVendorPaymentResponsibility, queryKeyVendorsGetVendorPaymentResponsibility, type VendorsGetVendorPaymentResponsibilityQueryData, };
11
+ export type VendorsGetVendorPaymentResponsibilityQueryError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
12
+ /**
13
+ * Get vendor payment responsibility
14
+ *
15
+ * @remarks
16
+ * Returns the payment responsibility record for a vendor managed by the authenticated
17
+ * company manager's company, or by the vendor themselves. Each `_user_id` field
18
+ * indicates which party is responsible for that payment category; `null` means
19
+ * responsibility defaults to the vendor.
20
+ */
21
+ export declare function useVendorsGetVendorPaymentResponsibility(request: operations.GetVendorPaymentResponsibilityRequest, options?: QueryHookOptions<VendorsGetVendorPaymentResponsibilityQueryData, VendorsGetVendorPaymentResponsibilityQueryError>): UseQueryResult<VendorsGetVendorPaymentResponsibilityQueryData, VendorsGetVendorPaymentResponsibilityQueryError>;
22
+ /**
23
+ * Get vendor payment responsibility
24
+ *
25
+ * @remarks
26
+ * Returns the payment responsibility record for a vendor managed by the authenticated
27
+ * company manager's company, or by the vendor themselves. Each `_user_id` field
28
+ * indicates which party is responsible for that payment category; `null` means
29
+ * responsibility defaults to the vendor.
30
+ */
31
+ export declare function useVendorsGetVendorPaymentResponsibilitySuspense(request: operations.GetVendorPaymentResponsibilityRequest, options?: SuspenseQueryHookOptions<VendorsGetVendorPaymentResponsibilityQueryData, VendorsGetVendorPaymentResponsibilityQueryError>): UseSuspenseQueryResult<VendorsGetVendorPaymentResponsibilityQueryData, VendorsGetVendorPaymentResponsibilityQueryError>;
32
+ export declare function setVendorsGetVendorPaymentResponsibilityData(client: QueryClient, queryKeyBase: [vendorId: number], data: VendorsGetVendorPaymentResponsibilityQueryData): VendorsGetVendorPaymentResponsibilityQueryData | undefined;
33
+ export declare function invalidateVendorsGetVendorPaymentResponsibility(client: QueryClient, queryKeyBase: TupleToPrefixes<[vendorId: number]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
34
+ export declare function invalidateAllVendorsGetVendorPaymentResponsibility(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
35
+ //# sourceMappingURL=vendorsGetVendorPaymentResponsibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsGetVendorPaymentResponsibility.d.ts","sourceRoot":"","sources":["../../../src/react-query/vendorsGetVendorPaymentResponsibility.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,C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AAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,kDAAkD,CAChE,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CASf"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.queryKeyVendorsGetVendorPaymentResponsibility = exports.prefetchVendorsGetVendorPaymentResponsibility = exports.buildVendorsGetVendorPaymentResponsibilityQuery = void 0;
7
+ exports.useVendorsGetVendorPaymentResponsibility = useVendorsGetVendorPaymentResponsibility;
8
+ exports.useVendorsGetVendorPaymentResponsibilitySuspense = useVendorsGetVendorPaymentResponsibilitySuspense;
9
+ exports.setVendorsGetVendorPaymentResponsibilityData = setVendorsGetVendorPaymentResponsibilityData;
10
+ exports.invalidateVendorsGetVendorPaymentResponsibility = invalidateVendorsGetVendorPaymentResponsibility;
11
+ exports.invalidateAllVendorsGetVendorPaymentResponsibility = invalidateAllVendorsGetVendorPaymentResponsibility;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const _context_js_1 = require("./_context.js");
14
+ const vendorsGetVendorPaymentResponsibility_core_js_1 = require("./vendorsGetVendorPaymentResponsibility.core.js");
15
+ Object.defineProperty(exports, "buildVendorsGetVendorPaymentResponsibilityQuery", { enumerable: true, get: function () { return vendorsGetVendorPaymentResponsibility_core_js_1.buildVendorsGetVendorPaymentResponsibilityQuery; } });
16
+ Object.defineProperty(exports, "prefetchVendorsGetVendorPaymentResponsibility", { enumerable: true, get: function () { return vendorsGetVendorPaymentResponsibility_core_js_1.prefetchVendorsGetVendorPaymentResponsibility; } });
17
+ Object.defineProperty(exports, "queryKeyVendorsGetVendorPaymentResponsibility", { enumerable: true, get: function () { return vendorsGetVendorPaymentResponsibility_core_js_1.queryKeyVendorsGetVendorPaymentResponsibility; } });
18
+ /**
19
+ * Get vendor payment responsibility
20
+ *
21
+ * @remarks
22
+ * Returns the payment responsibility record for a vendor managed by the authenticated
23
+ * company manager's company, or by the vendor themselves. Each `_user_id` field
24
+ * indicates which party is responsible for that payment category; `null` means
25
+ * responsibility defaults to the vendor.
26
+ */
27
+ function useVendorsGetVendorPaymentResponsibility(request, options) {
28
+ const client = (0, _context_js_1.useGreenSecurityContext)();
29
+ return (0, react_query_1.useQuery)({
30
+ ...(0, vendorsGetVendorPaymentResponsibility_core_js_1.buildVendorsGetVendorPaymentResponsibilityQuery)(client, request, options),
31
+ ...options,
32
+ });
33
+ }
34
+ /**
35
+ * Get vendor payment responsibility
36
+ *
37
+ * @remarks
38
+ * Returns the payment responsibility record for a vendor managed by the authenticated
39
+ * company manager's company, or by the vendor themselves. Each `_user_id` field
40
+ * indicates which party is responsible for that payment category; `null` means
41
+ * responsibility defaults to the vendor.
42
+ */
43
+ function useVendorsGetVendorPaymentResponsibilitySuspense(request, options) {
44
+ const client = (0, _context_js_1.useGreenSecurityContext)();
45
+ return (0, react_query_1.useSuspenseQuery)({
46
+ ...(0, vendorsGetVendorPaymentResponsibility_core_js_1.buildVendorsGetVendorPaymentResponsibilityQuery)(client, request, options),
47
+ ...options,
48
+ });
49
+ }
50
+ function setVendorsGetVendorPaymentResponsibilityData(client, queryKeyBase, data) {
51
+ const key = (0, vendorsGetVendorPaymentResponsibility_core_js_1.queryKeyVendorsGetVendorPaymentResponsibility)(...queryKeyBase);
52
+ return client.setQueryData(key, data);
53
+ }
54
+ function invalidateVendorsGetVendorPaymentResponsibility(client, queryKeyBase, filters) {
55
+ return client.invalidateQueries({
56
+ ...filters,
57
+ queryKey: [
58
+ "@greensecurity/javascript-sdk",
59
+ "vendors",
60
+ "getVendorPaymentResponsibility",
61
+ ...queryKeyBase,
62
+ ],
63
+ });
64
+ }
65
+ function invalidateAllVendorsGetVendorPaymentResponsibility(client, filters) {
66
+ return client.invalidateQueries({
67
+ ...filters,
68
+ queryKey: [
69
+ "@greensecurity/javascript-sdk",
70
+ "vendors",
71
+ "getVendorPaymentResponsibility",
72
+ ],
73
+ });
74
+ }
75
+ //# sourceMappingURL=vendorsGetVendorPaymentResponsibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsGetVendorPaymentResponsibility.js","sourceRoot":"","sources":["../../../src/react-query/vendorsGetVendorPaymentResponsibility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6DH,4FAmBC;AAWD,4GAmBC;AAED,oGAWC;AAED,0GAcC;AAED,gHAYC;AAvJD,uDAO+B;AAa/B,+CAAwD;AAMxD,mHAKyD;AAEvD,gIANA,+FAA+C,OAMA;AAC/C,8HANA,6FAA6C,OAMA;AAC7C,8HANA,6FAA6C,OAMA;AAe/C;;;;;;;;GAQG;AACH,SAAgB,wCAAwC,CACtD,OAAyD,EACzD,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,sBAAQ,EAAC;QACd,GAAG,IAAA,+FAA+C,EAChD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,gDAAgD,CAC9D,OAAyD,EACzD,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,8BAAgB,EAAC;QACtB,GAAG,IAAA,+FAA+C,EAChD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,4CAA4C,CAC1D,MAAmB,EACnB,YAAgC,EAChC,IAAoD;IAEpD,MAAM,GAAG,GAAG,IAAA,6FAA6C,EAAC,GAAG,YAAY,CAAC,CAAC;IAE3E,OAAO,MAAM,CAAC,YAAY,CACxB,GAAG,EACH,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAgB,+CAA+C,CAC7D,MAAmB,EACnB,YAAiD,EACjD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,SAAS;YACT,gCAAgC;YAChC,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,kDAAkD,CAChE,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,SAAS;YACT,gCAAgC;SACjC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -18,7 +18,7 @@ export type VendorsUpdateVendorDetailsMutationError = errors.ApiErrorResponse |
18
18
  * Update vendor details
19
19
  *
20
20
  * @remarks
21
- * It will update the vendor details
21
+ * Update an individual vendor's profile — title, location, supervisor, email preferences, primary department, and primary sales state. A company manager can also remove the vendor from their company by sending `company_id: null`.
22
22
  */
23
23
  export declare function useVendorsUpdateVendorDetailsMutation(options?: MutationHookOptions<VendorsUpdateVendorDetailsMutationData, VendorsUpdateVendorDetailsMutationError, VendorsUpdateVendorDetailsMutationVariables>): UseMutationResult<VendorsUpdateVendorDetailsMutationData, VendorsUpdateVendorDetailsMutationError, VendorsUpdateVendorDetailsMutationVariables>;
24
24
  export declare function mutationKeyVendorsUpdateVendorDetails(): MutationKey;
@@ -15,7 +15,7 @@ const _context_js_1 = require("./_context.js");
15
15
  * Update vendor details
16
16
  *
17
17
  * @remarks
18
- * It will update the vendor details
18
+ * Update an individual vendor's profile — title, location, supervisor, email preferences, primary department, and primary sales state. A company manager can also remove the vendor from their company by sending `company_id: null`.
19
19
  */
20
20
  function useVendorsUpdateVendorDetailsMutation(options) {
21
21
  const client = (0, _context_js_1.useGreenSecurityContext)();
@@ -0,0 +1,33 @@
1
+ import { MutationKey, UseMutationResult } from "@tanstack/react-query";
2
+ import { GreenSecurityCore } from "../core.js";
3
+ import { RequestOptions } from "../lib/sdks.js";
4
+ import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
5
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
+ import * as errors from "../models/errors/index.js";
7
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { MutationHookOptions } from "./_types.js";
11
+ export type VendorsUpdateVendorPaymentResponsibilityMutationVariables = {
12
+ request: operations.UpdateVendorPaymentResponsibilityRequest;
13
+ options?: RequestOptions;
14
+ };
15
+ export type VendorsUpdateVendorPaymentResponsibilityMutationData = operations.UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk;
16
+ export type VendorsUpdateVendorPaymentResponsibilityMutationError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
17
+ /**
18
+ * Update vendor payment responsibility
19
+ *
20
+ * @remarks
21
+ * Partially updates the payment responsibility record for a vendor. Only company
22
+ * managers may call this endpoint. Each supplied `_user_id` must be either the
23
+ * vendor's user ID (to assign responsibility back to the vendor) or the
24
+ * authenticated manager's own user ID (to claim responsibility). Omitted fields
25
+ * are left unchanged.
26
+ */
27
+ export declare function useVendorsUpdateVendorPaymentResponsibilityMutation(options?: MutationHookOptions<VendorsUpdateVendorPaymentResponsibilityMutationData, VendorsUpdateVendorPaymentResponsibilityMutationError, VendorsUpdateVendorPaymentResponsibilityMutationVariables>): UseMutationResult<VendorsUpdateVendorPaymentResponsibilityMutationData, VendorsUpdateVendorPaymentResponsibilityMutationError, VendorsUpdateVendorPaymentResponsibilityMutationVariables>;
28
+ export declare function mutationKeyVendorsUpdateVendorPaymentResponsibility(): MutationKey;
29
+ export declare function buildVendorsUpdateVendorPaymentResponsibilityMutation(client$: GreenSecurityCore, hookOptions?: RequestOptions): {
30
+ mutationKey: MutationKey;
31
+ mutationFn: (variables: VendorsUpdateVendorPaymentResponsibilityMutationVariables) => Promise<VendorsUpdateVendorPaymentResponsibilityMutationData>;
32
+ };
33
+ //# sourceMappingURL=vendorsUpdateVendorPaymentResponsibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsUpdateVendorPaymentResponsibility.d.ts","sourceRoot":"","sources":["../../../src/react-query/vendorsUpdateVendorPaymentResponsibility.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,yDAAyD,GAAG;IACtE,OAAO,EAAE,UAAU,CAAC,wCAAwC,CAAC;IAC7D,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oDAAoD,GAC9D,UAAU,CAAC,oEAAoE,CAAC;AAElF,MAAM,MAAM,qDAAqD,GAC7D,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;GASG;AACH,wBAAgB,mDAAmD,CACjE,OAAO,CAAC,EAAE,mBAAmB,CAC3B,oDAAoD,EACpD,qDAAqD,EACrD,yDAAyD,CAC1D,GACA,iBAAiB,CAClB,oDAAoD,EACpD,qDAAqD,EACrD,yDAAyD,CAC1D,CAMA;AAED,wBAAgB,mDAAmD,IAAI,WAAW,CAMjF;AAED,wBAAgB,qDAAqD,CACnE,OAAO,EAAE,iBAAiB,EAC1B,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,yDAAyD,KACjE,OAAO,CAAC,oDAAoD,CAAC,CAAC;CACpE,CA0BA"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useVendorsUpdateVendorPaymentResponsibilityMutation = useVendorsUpdateVendorPaymentResponsibilityMutation;
7
+ exports.mutationKeyVendorsUpdateVendorPaymentResponsibility = mutationKeyVendorsUpdateVendorPaymentResponsibility;
8
+ exports.buildVendorsUpdateVendorPaymentResponsibilityMutation = buildVendorsUpdateVendorPaymentResponsibilityMutation;
9
+ const react_query_1 = require("@tanstack/react-query");
10
+ const vendorsUpdateVendorPaymentResponsibility_js_1 = require("../funcs/vendorsUpdateVendorPaymentResponsibility.js");
11
+ const primitives_js_1 = require("../lib/primitives.js");
12
+ const fp_js_1 = require("../types/fp.js");
13
+ const _context_js_1 = require("./_context.js");
14
+ /**
15
+ * Update vendor payment responsibility
16
+ *
17
+ * @remarks
18
+ * Partially updates the payment responsibility record for a vendor. Only company
19
+ * managers may call this endpoint. Each supplied `_user_id` must be either the
20
+ * vendor's user ID (to assign responsibility back to the vendor) or the
21
+ * authenticated manager's own user ID (to claim responsibility). Omitted fields
22
+ * are left unchanged.
23
+ */
24
+ function useVendorsUpdateVendorPaymentResponsibilityMutation(options) {
25
+ const client = (0, _context_js_1.useGreenSecurityContext)();
26
+ return (0, react_query_1.useMutation)({
27
+ ...buildVendorsUpdateVendorPaymentResponsibilityMutation(client, options),
28
+ ...options,
29
+ });
30
+ }
31
+ function mutationKeyVendorsUpdateVendorPaymentResponsibility() {
32
+ return [
33
+ "@greensecurity/javascript-sdk",
34
+ "vendors",
35
+ "updateVendorPaymentResponsibility",
36
+ ];
37
+ }
38
+ function buildVendorsUpdateVendorPaymentResponsibilityMutation(client$, hookOptions) {
39
+ return {
40
+ mutationKey: mutationKeyVendorsUpdateVendorPaymentResponsibility(),
41
+ mutationFn: function vendorsUpdateVendorPaymentResponsibilityMutationFn({ request, options, }) {
42
+ const mergedOptions = {
43
+ ...hookOptions,
44
+ ...options,
45
+ fetchOptions: {
46
+ ...hookOptions?.fetchOptions,
47
+ ...options?.fetchOptions,
48
+ signal: (0, primitives_js_1.combineSignals)(hookOptions?.fetchOptions?.signal, options?.fetchOptions?.signal),
49
+ },
50
+ };
51
+ return (0, fp_js_1.unwrapAsync)((0, vendorsUpdateVendorPaymentResponsibility_js_1.vendorsUpdateVendorPaymentResponsibility)(client$, request, mergedOptions));
52
+ },
53
+ };
54
+ }
55
+ //# sourceMappingURL=vendorsUpdateVendorPaymentResponsibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsUpdateVendorPaymentResponsibility.js","sourceRoot":"","sources":["../../../src/react-query/vendorsUpdateVendorPaymentResponsibility.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAwDH,kHAgBC;AAED,kHAMC;AAED,sHAkCC;AAlHD,uDAI+B;AAE/B,sHAAgH;AAChH,wDAAsD;AActD,0CAA6C;AAC7C,+CAAwD;AAsBxD;;;;;;;;;GASG;AACH,SAAgB,mDAAmD,CACjE,OAIC;IAMD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,yBAAW,EAAC;QACjB,GAAG,qDAAqD,CAAC,MAAM,EAAE,OAAO,CAAC;QACzE,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,mDAAmD;IACjE,OAAO;QACL,+BAA+B;QAC/B,SAAS;QACT,mCAAmC;KACpC,CAAC;AACJ,CAAC;AAED,SAAgB,qDAAqD,CACnE,OAA0B,EAC1B,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,mDAAmD,EAAE;QAClE,UAAU,EAAE,SAAS,kDAAkD,CAAC,EACtE,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,IAAA,8BAAc,EACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,IAAA,mBAAW,EAAC,IAAA,sFAAwC,EACzD,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -84,6 +84,27 @@ export declare class Vendors extends ClientSDK {
84
84
  listVendorTypes(request: operations.ListVendorTypesRequest, options?: RequestOptions): Promise<PageIterator<operations.ListVendorTypesResponse, {
85
85
  page: number;
86
86
  }>>;
87
+ /**
88
+ * Get vendor payment responsibility
89
+ *
90
+ * @remarks
91
+ * Returns the payment responsibility record for a vendor managed by the authenticated
92
+ * company manager's company, or by the vendor themselves. Each `_user_id` field
93
+ * indicates which party is responsible for that payment category; `null` means
94
+ * responsibility defaults to the vendor.
95
+ */
96
+ getVendorPaymentResponsibility(request: operations.GetVendorPaymentResponsibilityRequest, options?: RequestOptions): Promise<operations.GetVendorPaymentResponsibilityGetVendorPaymentResponsibilityOk>;
97
+ /**
98
+ * Update vendor payment responsibility
99
+ *
100
+ * @remarks
101
+ * Partially updates the payment responsibility record for a vendor. Only company
102
+ * managers may call this endpoint. Each supplied `_user_id` must be either the
103
+ * vendor's user ID (to assign responsibility back to the vendor) or the
104
+ * authenticated manager's own user ID (to claim responsibility). Omitted fields
105
+ * are left unchanged.
106
+ */
107
+ updateVendorPaymentResponsibility(request: operations.UpdateVendorPaymentResponsibilityRequest, options?: RequestOptions): Promise<operations.UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk>;
87
108
  /**
88
109
  * List Vendor Credentials
89
110
  *
@@ -401,7 +422,7 @@ export declare class Vendors extends ClientSDK {
401
422
  * Update vendor details
402
423
  *
403
424
  * @remarks
404
- * It will update the vendor details
425
+ * Update an individual vendor's profile — title, location, supervisor, email preferences, primary department, and primary sales state. A company manager can also remove the vendor from their company by sending `company_id: null`.
405
426
  */
406
427
  updateVendorDetails(request: operations.UpdateVendorDetailsRequest, options?: RequestOptions): Promise<boolean>;
407
428
  /**