@greensecurity/javascript-sdk 0.46.0-beta.6 → 0.46.0-beta.7

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 (176) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js +6 -5
  3. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/zones.test.js +6 -6
  5. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  6. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
  7. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
  8. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js +9 -0
  9. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
  10. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
  11. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
  12. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js +9 -0
  13. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
  14. package/dist/commonjs/funcs/eventsListFeed.d.ts +9 -8
  15. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/eventsListFeed.js +9 -8
  17. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  18. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +8 -7
  19. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  20. package/dist/commonjs/funcs/eventsListPendingInvitations.js +8 -7
  21. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  22. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +6 -5
  23. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/eventsListStandingAppointments.js +6 -5
  25. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  26. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
  27. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +4 -0
  29. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  30. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
  31. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +4 -0
  33. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
  34. package/dist/commonjs/index.extras.d.ts +6 -0
  35. package/dist/commonjs/index.extras.d.ts.map +1 -1
  36. package/dist/commonjs/index.extras.js +6 -0
  37. package/dist/commonjs/index.extras.js.map +1 -1
  38. package/dist/commonjs/lib/config.d.ts +2 -2
  39. package/dist/commonjs/lib/config.js +2 -2
  40. package/dist/commonjs/models/components/event.d.ts +2 -2
  41. package/dist/commonjs/models/components/invite.d.ts +40 -4
  42. package/dist/commonjs/models/components/invite.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/invite.js +20 -0
  44. package/dist/commonjs/models/components/invite.js.map +1 -1
  45. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +12 -0
  46. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
  48. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  49. package/dist/commonjs/react-query/eventsListFeed.d.ts +37 -33
  50. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  51. package/dist/commonjs/react-query/eventsListFeed.js +37 -33
  52. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  53. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +32 -28
  54. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  55. package/dist/commonjs/react-query/eventsListPendingInvitations.js +32 -28
  56. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  57. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +24 -20
  58. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  59. package/dist/commonjs/react-query/eventsListStandingAppointments.js +24 -20
  60. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  61. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
  62. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  63. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +8 -0
  64. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  65. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
  66. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  67. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js +16 -0
  68. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
  69. package/dist/commonjs/sdk/events.d.ts +23 -20
  70. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  71. package/dist/commonjs/sdk/events.js +23 -20
  72. package/dist/commonjs/sdk/events.js.map +1 -1
  73. package/dist/commonjs/sdk/vendors.d.ts +8 -0
  74. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  75. package/dist/commonjs/sdk/vendors.js +8 -0
  76. package/dist/commonjs/sdk/vendors.js.map +1 -1
  77. package/dist/esm/__tests__/vendors.test.js +1 -1
  78. package/dist/esm/__tests__/webhooks.test.js +6 -5
  79. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  80. package/dist/esm/__tests__/zones.test.js +6 -6
  81. package/dist/esm/__tests__/zones.test.js.map +1 -1
  82. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
  83. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
  84. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js +6 -0
  85. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
  86. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
  87. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
  88. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js +6 -0
  89. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
  90. package/dist/esm/funcs/eventsListFeed.d.ts +9 -8
  91. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  92. package/dist/esm/funcs/eventsListFeed.js +9 -8
  93. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  94. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +8 -7
  95. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  96. package/dist/esm/funcs/eventsListPendingInvitations.js +8 -7
  97. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  98. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +6 -5
  99. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  100. package/dist/esm/funcs/eventsListStandingAppointments.js +6 -5
  101. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  102. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
  103. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  104. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +4 -0
  105. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  106. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
  107. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  108. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +4 -0
  109. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
  110. package/dist/esm/index.extras.d.ts +6 -0
  111. package/dist/esm/index.extras.d.ts.map +1 -1
  112. package/dist/esm/index.extras.js +6 -0
  113. package/dist/esm/index.extras.js.map +1 -1
  114. package/dist/esm/lib/config.d.ts +2 -2
  115. package/dist/esm/lib/config.js +2 -2
  116. package/dist/esm/models/components/event.d.ts +2 -2
  117. package/dist/esm/models/components/invite.d.ts +40 -4
  118. package/dist/esm/models/components/invite.d.ts.map +1 -1
  119. package/dist/esm/models/components/invite.js +20 -0
  120. package/dist/esm/models/components/invite.js.map +1 -1
  121. package/dist/esm/models/components/vendorcredentialsummary.d.ts +12 -0
  122. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  123. package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
  124. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  125. package/dist/esm/react-query/eventsListFeed.d.ts +37 -33
  126. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  127. package/dist/esm/react-query/eventsListFeed.js +37 -33
  128. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  129. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +32 -28
  130. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  131. package/dist/esm/react-query/eventsListPendingInvitations.js +32 -28
  132. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  133. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +24 -20
  134. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  135. package/dist/esm/react-query/eventsListStandingAppointments.js +24 -20
  136. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  137. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
  138. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  139. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +8 -0
  140. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  141. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
  142. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  143. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js +16 -0
  144. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
  145. package/dist/esm/sdk/events.d.ts +23 -20
  146. package/dist/esm/sdk/events.d.ts.map +1 -1
  147. package/dist/esm/sdk/events.js +23 -20
  148. package/dist/esm/sdk/events.js.map +1 -1
  149. package/dist/esm/sdk/vendors.d.ts +8 -0
  150. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  151. package/dist/esm/sdk/vendors.js +8 -0
  152. package/dist/esm/sdk/vendors.js.map +1 -1
  153. package/jsr.json +1 -1
  154. package/package.json +1 -1
  155. package/src/__tests__/vendors.test.ts +1 -1
  156. package/src/__tests__/webhooks.test.ts +6 -5
  157. package/src/__tests__/zones.test.ts +6 -6
  158. package/src/admin-funcs/vendorCredentialCreateFormQuote.ts +12 -0
  159. package/src/admin-funcs/vendorCredentialGetFormLineItems.ts +12 -0
  160. package/src/funcs/eventsListFeed.ts +9 -8
  161. package/src/funcs/eventsListPendingInvitations.ts +8 -7
  162. package/src/funcs/eventsListStandingAppointments.ts +6 -5
  163. package/src/funcs/vendorsGetVendorCredentialDetails.ts +4 -0
  164. package/src/funcs/vendorsListVendorCredentialHistory.ts +4 -0
  165. package/src/index.extras.ts +7 -0
  166. package/src/lib/config.ts +2 -2
  167. package/src/models/components/event.ts +2 -2
  168. package/src/models/components/invite.ts +60 -4
  169. package/src/models/components/vendorcredentialsummary.ts +16 -0
  170. package/src/react-query/eventsListFeed.ts +36 -32
  171. package/src/react-query/eventsListPendingInvitations.ts +32 -28
  172. package/src/react-query/eventsListStandingAppointments.ts +24 -20
  173. package/src/react-query/vendorsGetVendorCredentialDetails.ts +8 -0
  174. package/src/react-query/vendorsListVendorCredentialHistory.ts +16 -0
  175. package/src/sdk/events.ts +23 -20
  176. package/src/sdk/vendors.ts +8 -0
@@ -171,6 +171,7 @@ export type VendorCredentialSummary = {
171
171
  * The date from which the vendor credential is valid, or `null` if not set.
172
172
  */
173
173
  dateValid?: string | null | undefined;
174
+ dateSubmittedPendingPayment?: string | null | undefined;
174
175
  /**
175
176
  * Free-form notes about the vendor credential, or `null` if there are none.
176
177
  */
@@ -191,6 +192,17 @@ export type VendorCredentialSummary = {
191
192
  * Whether the credential applies to the vendor's whole company instead of the individual vendor, or `null` if unknown.
192
193
  */
193
194
  appliesToCompany?: boolean | null | undefined;
195
+ /**
196
+ * Only populated on GET .../history; omitted everywhere else this schema is used (e.g.
197
+ *
198
+ * @remarks
199
+ * GET .../credentials/:id). Whether the currently logged in user is the one who first
200
+ * submitted this version (the vendor themselves, or the company manager who acted on
201
+ * their behalf) - not whether they most recently touched it. `false` also covers a
202
+ * version whose submitter could not be determined (it predates this field and a one-time
203
+ * backfill from older data found no match), not only one submitted by someone else.
204
+ */
205
+ submittedByCurrentUser?: boolean | undefined;
194
206
  /**
195
207
  * The credential this vendor credential is for, as an object or as its ID.
196
208
  */
@@ -470,11 +482,13 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
470
482
  date_expires: z.nullable(types.string()).optional(),
471
483
  date_expedited: z.nullable(types.string()).optional(),
472
484
  date_valid: z.nullable(types.string()).optional(),
485
+ date_submitted_pending_payment: z.nullable(types.string()).optional(),
473
486
  notes: z.nullable(types.string()).optional(),
474
487
  json_data: z.nullable(types.string()).optional(),
475
488
  filename: z.nullable(types.string()).optional(),
476
489
  alternate_id: z.nullable(types.number()).optional(),
477
490
  applies_to_company: z.nullable(types.boolean()).optional(),
491
+ submitted_by_current_user: types.optional(types.boolean()),
478
492
  credential: z.nullable(smartUnion([Credential$inboundSchema, types.number()]))
479
493
  .optional(),
480
494
  vendor: z.nullable(smartUnion([Vendor$inboundSchema, types.number()]))
@@ -522,9 +536,11 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
522
536
  "date_expires": "dateExpires",
523
537
  "date_expedited": "dateExpedited",
524
538
  "date_valid": "dateValid",
539
+ "date_submitted_pending_payment": "dateSubmittedPendingPayment",
525
540
  "json_data": "jsonData",
526
541
  "alternate_id": "alternateId",
527
542
  "applies_to_company": "appliesToCompany",
543
+ "submitted_by_current_user": "submittedByCurrentUser",
528
544
  "vendor_credential_files": "vendorCredentialFiles",
529
545
  "latest_vendor_credential_id": "latestVendorCredentialId",
530
546
  "previously_approved": "previouslyApproved",
@@ -80,15 +80,16 @@ export type EventsListFeedQueryError =
80
80
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
81
81
  * The caller's role and their relationship to the record decide what the response includes.
82
82
  *
83
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
84
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
85
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
86
- * instead, in which `facility` and `department` are name strings, not ids; the server
87
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
88
- * shape it was generated against until you regenerate it.
83
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
84
+ * `event.department` scopes already applied, so the server populates `event_creator`,
85
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
86
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
87
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
88
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
89
+ * existing client keeps the shape it was generated against until you regenerate it.
89
90
  *
90
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
91
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
91
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
92
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
92
93
  * build against it.
93
94
  */
94
95
  export function useEventsListFeed(
@@ -115,15 +116,16 @@ export function useEventsListFeed(
115
116
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
116
117
  * The caller's role and their relationship to the record decide what the response includes.
117
118
  *
118
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
119
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
120
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
121
- * instead, in which `facility` and `department` are name strings, not ids; the server
122
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
123
- * shape it was generated against until you regenerate it.
119
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
120
+ * `event.department` scopes already applied, so the server populates `event_creator`,
121
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
122
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
123
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
124
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
125
+ * existing client keeps the shape it was generated against until you regenerate it.
124
126
  *
125
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
126
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
127
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
128
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
127
129
  * build against it.
128
130
  */
129
131
  export function useEventsListFeedSuspense(
@@ -153,15 +155,16 @@ export function useEventsListFeedSuspense(
153
155
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
154
156
  * The caller's role and their relationship to the record decide what the response includes.
155
157
  *
156
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
157
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
158
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
159
- * instead, in which `facility` and `department` are name strings, not ids; the server
160
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
161
- * shape it was generated against until you regenerate it.
158
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
159
+ * `event.department` scopes already applied, so the server populates `event_creator`,
160
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
161
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
162
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
163
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
164
+ * existing client keeps the shape it was generated against until you regenerate it.
162
165
  *
163
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
164
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
166
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
167
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
165
168
  * build against it.
166
169
  */
167
170
  export function useEventsListFeedInfinite(
@@ -202,15 +205,16 @@ export function useEventsListFeedInfinite(
202
205
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
203
206
  * The caller's role and their relationship to the record decide what the response includes.
204
207
  *
205
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
206
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
207
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
208
- * instead, in which `facility` and `department` are name strings, not ids; the server
209
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
210
- * shape it was generated against until you regenerate it.
208
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
209
+ * `event.department` scopes already applied, so the server populates `event_creator`,
210
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
211
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
212
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
213
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
214
+ * existing client keeps the shape it was generated against until you regenerate it.
211
215
  *
212
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
213
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
216
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
217
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
214
218
  * build against it.
215
219
  */
216
220
  export function useEventsListFeedInfiniteSuspense(
@@ -80,15 +80,16 @@ export type EventsListPendingInvitationsQueryError =
80
80
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
81
81
  * the caller's role and their relationship to the record decide what the endpoint returns.
82
82
  *
83
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
84
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
85
- * populated—the appointment and the recipient this list has always named. This endpoint
86
- * takes no `expand` parameter; the endpoint always applies both scopes.
87
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
83
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
84
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
85
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
86
+ * populated with the recipient's name and thumbnail—what this list has always published. This
87
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
88
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
88
89
  * embeds the appointment.
89
90
  *
90
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
91
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
91
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
92
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
92
93
  * build compares against it.
93
94
  */
94
95
  export function useEventsListPendingInvitations(
@@ -121,15 +122,16 @@ export function useEventsListPendingInvitations(
121
122
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
122
123
  * the caller's role and their relationship to the record decide what the endpoint returns.
123
124
  *
124
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
125
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
126
- * populated—the appointment and the recipient this list has always named. This endpoint
127
- * takes no `expand` parameter; the endpoint always applies both scopes.
128
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
125
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
126
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
127
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
128
+ * populated with the recipient's name and thumbnail—what this list has always published. This
129
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
130
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
129
131
  * embeds the appointment.
130
132
  *
131
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
132
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
133
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
134
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
133
135
  * build compares against it.
134
136
  */
135
137
  export function useEventsListPendingInvitationsSuspense(
@@ -162,15 +164,16 @@ export function useEventsListPendingInvitationsSuspense(
162
164
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
163
165
  * the caller's role and their relationship to the record decide what the endpoint returns.
164
166
  *
165
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
166
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
167
- * populated—the appointment and the recipient this list has always named. This endpoint
168
- * takes no `expand` parameter; the endpoint always applies both scopes.
169
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
167
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
168
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
169
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
170
+ * populated with the recipient's name and thumbnail—what this list has always published. This
171
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
172
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
170
173
  * embeds the appointment.
171
174
  *
172
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
173
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
175
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
176
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
174
177
  * build compares against it.
175
178
  */
176
179
  export function useEventsListPendingInvitationsInfinite(
@@ -217,15 +220,16 @@ export function useEventsListPendingInvitationsInfinite(
217
220
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
218
221
  * the caller's role and their relationship to the record decide what the endpoint returns.
219
222
  *
220
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
221
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
222
- * populated—the appointment and the recipient this list has always named. This endpoint
223
- * takes no `expand` parameter; the endpoint always applies both scopes.
224
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
223
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
224
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
225
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
226
+ * populated with the recipient's name and thumbnail—what this list has always published. This
227
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
228
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
225
229
  * embeds the appointment.
226
230
  *
227
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
228
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
231
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
232
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
229
233
  * build compares against it.
230
234
  */
231
235
  export function useEventsListPendingInvitationsInfiniteSuspense(
@@ -81,13 +81,14 @@ export type EventsListStandingAppointmentsQueryError =
81
81
  * the caller's role and their relationship to the record decide what the endpoint returns.
82
82
  *
83
83
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
84
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
85
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
86
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
84
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
85
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
86
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
87
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
87
88
  * `StandingAppointment` shape instead.
88
89
  *
89
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
90
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
90
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
91
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
91
92
  * build compares against it.
92
93
  */
93
94
  export function useEventsListStandingAppointments(
@@ -121,13 +122,14 @@ export function useEventsListStandingAppointments(
121
122
  * the caller's role and their relationship to the record decide what the endpoint returns.
122
123
  *
123
124
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
124
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
125
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
126
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
125
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
126
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
127
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
128
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
127
129
  * `StandingAppointment` shape instead.
128
130
  *
129
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
130
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
131
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
132
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
131
133
  * build compares against it.
132
134
  */
133
135
  export function useEventsListStandingAppointmentsSuspense(
@@ -161,13 +163,14 @@ export function useEventsListStandingAppointmentsSuspense(
161
163
  * the caller's role and their relationship to the record decide what the endpoint returns.
162
164
  *
163
165
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
164
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
165
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
166
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
166
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
167
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
168
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
169
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
167
170
  * `StandingAppointment` shape instead.
168
171
  *
169
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
170
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
172
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
173
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
171
174
  * build compares against it.
172
175
  */
173
176
  export function useEventsListStandingAppointmentsInfinite(
@@ -215,13 +218,14 @@ export function useEventsListStandingAppointmentsInfinite(
215
218
  * the caller's role and their relationship to the record decide what the endpoint returns.
216
219
  *
217
220
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
218
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
219
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
220
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
221
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
222
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
223
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
224
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
221
225
  * `StandingAppointment` shape instead.
222
226
  *
223
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
224
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
227
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
228
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
225
229
  * build compares against it.
226
230
  */
227
231
  export function useEventsListStandingAppointmentsInfiniteSuspense(
@@ -63,6 +63,10 @@ export type VendorsGetVendorCredentialDetailsQueryError =
63
63
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
64
64
  * receives the files they personally uploaded on the vendor's behalf.
65
65
  *
66
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
67
+ * one who first submitted this version of the credential - everything else in the response
68
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
69
+ *
66
70
  * The following `expand` scopes are available:
67
71
  *
68
72
  * - `vendor_credential.credential`
@@ -127,6 +131,10 @@ export function useVendorsGetVendorCredentialDetails(
127
131
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
128
132
  * receives the files they personally uploaded on the vendor's behalf.
129
133
  *
134
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
135
+ * one who first submitted this version of the credential - everything else in the response
136
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
137
+ *
130
138
  * The following `expand` scopes are available:
131
139
  *
132
140
  * - `vendor_credential.credential`
@@ -78,6 +78,10 @@ export type VendorsListVendorCredentialHistoryQueryError =
78
78
  * Lists vendor credentials history
79
79
  *
80
80
  * **Permissions.** Requires the `vendor_credentials.view` permission.
81
+ *
82
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
83
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
84
+ * from ones made by someone else with access to the same credential.
81
85
  */
82
86
  export function useVendorsListVendorCredentialHistory(
83
87
  request: operations.ListVendorCredentialHistoryRequest,
@@ -107,6 +111,10 @@ export function useVendorsListVendorCredentialHistory(
107
111
  * Lists vendor credentials history
108
112
  *
109
113
  * **Permissions.** Requires the `vendor_credentials.view` permission.
114
+ *
115
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
116
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
117
+ * from ones made by someone else with access to the same credential.
110
118
  */
111
119
  export function useVendorsListVendorCredentialHistorySuspense(
112
120
  request: operations.ListVendorCredentialHistoryRequest,
@@ -136,6 +144,10 @@ export function useVendorsListVendorCredentialHistorySuspense(
136
144
  * Lists vendor credentials history
137
145
  *
138
146
  * **Permissions.** Requires the `vendor_credentials.view` permission.
147
+ *
148
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
149
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
150
+ * from ones made by someone else with access to the same credential.
139
151
  */
140
152
  export function useVendorsListVendorCredentialHistoryInfinite(
141
153
  request: operations.ListVendorCredentialHistoryRequest,
@@ -179,6 +191,10 @@ export function useVendorsListVendorCredentialHistoryInfinite(
179
191
  * Lists vendor credentials history
180
192
  *
181
193
  * **Permissions.** Requires the `vendor_credentials.view` permission.
194
+ *
195
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
196
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
197
+ * from ones made by someone else with access to the same credential.
182
198
  */
183
199
  export function useVendorsListVendorCredentialHistoryInfiniteSuspense(
184
200
  request: operations.ListVendorCredentialHistoryRequest,
package/src/sdk/events.ts CHANGED
@@ -210,15 +210,16 @@ export class Events extends ClientSDK {
210
210
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
211
211
  * the caller's role and their relationship to the record decide what the endpoint returns.
212
212
  *
213
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
214
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
215
- * populated—the appointment and the recipient this list has always named. This endpoint
216
- * takes no `expand` parameter; the endpoint always applies both scopes.
217
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
213
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
214
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
215
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
216
+ * populated with the recipient's name and thumbnail—what this list has always published. This
217
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
218
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
218
219
  * embeds the appointment.
219
220
  *
220
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
221
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
221
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
222
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
222
223
  * build compares against it.
223
224
  */
224
225
  async listPendingInvitations(
@@ -243,15 +244,16 @@ export class Events extends ClientSDK {
243
244
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
244
245
  * The caller's role and their relationship to the record decide what the response includes.
245
246
  *
246
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
247
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
248
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
249
- * instead, in which `facility` and `department` are name strings, not ids; the server
250
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
251
- * shape it was generated against until you regenerate it.
247
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
248
+ * `event.department` scopes already applied, so the server populates `event_creator`,
249
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
250
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
251
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
252
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
253
+ * existing client keeps the shape it was generated against until you regenerate it.
252
254
  *
253
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
254
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
255
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
256
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
255
257
  * build against it.
256
258
  */
257
259
  async listFeed(
@@ -275,13 +277,14 @@ export class Events extends ClientSDK {
275
277
  * the caller's role and their relationship to the record decide what the endpoint returns.
276
278
  *
277
279
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
278
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
279
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
280
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
280
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
281
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
282
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
283
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
281
284
  * `StandingAppointment` shape instead.
282
285
  *
283
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
284
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
286
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
287
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
285
288
  * build compares against it.
286
289
  */
287
290
  async listStandingAppointments(
@@ -296,6 +296,10 @@ export class Vendors extends ClientSDK {
296
296
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
297
297
  * receives the files they personally uploaded on the vendor's behalf.
298
298
  *
299
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
300
+ * one who first submitted this version of the credential - everything else in the response
301
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
302
+ *
299
303
  * The following `expand` scopes are available:
300
304
  *
301
305
  * - `vendor_credential.credential`
@@ -637,6 +641,10 @@ export class Vendors extends ClientSDK {
637
641
  * Lists vendor credentials history
638
642
  *
639
643
  * **Permissions.** Requires the `vendor_credentials.view` permission.
644
+ *
645
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
646
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
647
+ * from ones made by someone else with access to the same credential.
640
648
  */
641
649
  async listVendorCredentialHistory(
642
650
  request: operations.ListVendorCredentialHistoryRequest,