@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.
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +6 -5
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +6 -6
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js +9 -0
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js +9 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
- package/dist/commonjs/funcs/eventsListFeed.d.ts +9 -8
- package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.js +9 -8
- package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +8 -7
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.js +8 -7
- package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +6 -5
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.js +6 -5
- package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +4 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +4 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +6 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +6 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/event.d.ts +2 -2
- package/dist/commonjs/models/components/invite.d.ts +40 -4
- package/dist/commonjs/models/components/invite.d.ts.map +1 -1
- package/dist/commonjs/models/components/invite.js +20 -0
- package/dist/commonjs/models/components/invite.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +12 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.d.ts +37 -33
- package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.js +37 -33
- package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +32 -28
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.js +32 -28
- package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +24 -20
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.js +24 -20
- package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +8 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js +16 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +23 -20
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +23 -20
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +8 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +8 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +6 -5
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +6 -6
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js +6 -0
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js +6 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
- package/dist/esm/funcs/eventsListFeed.d.ts +9 -8
- package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListFeed.js +9 -8
- package/dist/esm/funcs/eventsListFeed.js.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts +8 -7
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.js +8 -7
- package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts +6 -5
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.js +6 -5
- package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +4 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +4 -0
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
- package/dist/esm/index.extras.d.ts +6 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +6 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/event.d.ts +2 -2
- package/dist/esm/models/components/invite.d.ts +40 -4
- package/dist/esm/models/components/invite.d.ts.map +1 -1
- package/dist/esm/models/components/invite.js +20 -0
- package/dist/esm/models/components/invite.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +12 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/react-query/eventsListFeed.d.ts +37 -33
- package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListFeed.js +37 -33
- package/dist/esm/react-query/eventsListFeed.js.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts +32 -28
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.js +32 -28
- package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts +24 -20
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.js +24 -20
- package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +8 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.js +16 -0
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +23 -20
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +23 -20
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +8 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +8 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +6 -5
- package/src/__tests__/zones.test.ts +6 -6
- package/src/admin-funcs/vendorCredentialCreateFormQuote.ts +12 -0
- package/src/admin-funcs/vendorCredentialGetFormLineItems.ts +12 -0
- package/src/funcs/eventsListFeed.ts +9 -8
- package/src/funcs/eventsListPendingInvitations.ts +8 -7
- package/src/funcs/eventsListStandingAppointments.ts +6 -5
- package/src/funcs/vendorsGetVendorCredentialDetails.ts +4 -0
- package/src/funcs/vendorsListVendorCredentialHistory.ts +4 -0
- package/src/index.extras.ts +7 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/event.ts +2 -2
- package/src/models/components/invite.ts +60 -4
- package/src/models/components/vendorcredentialsummary.ts +16 -0
- package/src/react-query/eventsListFeed.ts +36 -32
- package/src/react-query/eventsListPendingInvitations.ts +32 -28
- package/src/react-query/eventsListStandingAppointments.ts +24 -20
- package/src/react-query/vendorsGetVendorCredentialDetails.ts +8 -0
- package/src/react-query/vendorsListVendorCredentialHistory.ts +16 -0
- package/src/sdk/events.ts +23 -20
- 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
|
|
84
|
-
* so the server populates `event_creator`,
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
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.
|
|
91
|
-
* `0.
|
|
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
|
|
119
|
-
* so the server populates `event_creator`,
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
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.
|
|
126
|
-
* `0.
|
|
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
|
|
157
|
-
* so the server populates `event_creator`,
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
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.
|
|
164
|
-
* `0.
|
|
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
|
|
206
|
-
* so the server populates `event_creator`,
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
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.
|
|
213
|
-
* `0.
|
|
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
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
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.
|
|
91
|
-
* `0.
|
|
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
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
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.
|
|
132
|
-
* `0.
|
|
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
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
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.
|
|
173
|
-
* `0.
|
|
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
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
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.
|
|
228
|
-
* `0.
|
|
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.
|
|
85
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
86
|
-
*
|
|
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.
|
|
90
|
-
* `0.
|
|
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.
|
|
125
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
126
|
-
*
|
|
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.
|
|
130
|
-
* `0.
|
|
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.
|
|
165
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
166
|
-
*
|
|
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.
|
|
170
|
-
* `0.
|
|
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.
|
|
219
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
220
|
-
*
|
|
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.
|
|
224
|
-
* `0.
|
|
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
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
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.
|
|
221
|
-
* `0.
|
|
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
|
|
247
|
-
* so the server populates `event_creator`,
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
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.
|
|
254
|
-
* `0.
|
|
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.
|
|
279
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
280
|
-
*
|
|
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.
|
|
284
|
-
* `0.
|
|
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(
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -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,
|