@raytio/types 6.0.1 → 6.0.2
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/README.md +36 -2
- package/dist/raytio.d.ts +27 -0
- package/dist/schema.d.ts +1 -1
- package/dist/theme.d.ts +0 -1
- package/package.json +1 -1
- package/src/raytio.ts +30 -0
- package/src/schema.ts +1 -1
- package/src/theme.ts +0 -1
package/README.md
CHANGED
|
@@ -61,6 +61,8 @@ Hovering over the type in VSCode will display documentation and available proper
|
|
|
61
61
|
- [Verification](#verification)
|
|
62
62
|
- [VerificationPayload](#verificationpayload)
|
|
63
63
|
- [VerificationProvider](#verificationprovider)
|
|
64
|
+
- [WId](#wid)
|
|
65
|
+
- [Webhook](#webhook)
|
|
64
66
|
- [WizardConfig](#wizardconfig)
|
|
65
67
|
- [WizardPage](#wizardpage)
|
|
66
68
|
|
|
@@ -111,7 +113,6 @@ ___
|
|
|
111
113
|
| Name | Type | Description |
|
|
112
114
|
| :------ | :------ | :------ |
|
|
113
115
|
| `blank` | `string` | - |
|
|
114
|
-
| `blankBackground` | `string` | - |
|
|
115
116
|
| `climaterolText` | `string` | - |
|
|
116
117
|
| `climaterolUi` | `string` | - |
|
|
117
118
|
| `errorRed` | `string` | - |
|
|
@@ -229,6 +230,7 @@ ___
|
|
|
229
230
|
| `profile_objects` | [`ProfileObject`](#profileobject)[] | data associated is access application's instance |
|
|
230
231
|
| `reference` | `string` | reference provided by the user who shared the data |
|
|
231
232
|
| `relationships?` | [`Relationship`](#relationship)[] | - |
|
|
233
|
+
| `score?` | `unknown` | added by the client once it calculates the score |
|
|
232
234
|
| `service_provider_n_id?` | [`NId`](#nid) | Service provider ID |
|
|
233
235
|
| `start_date` | `string` | Earliest date on which the shared information was available |
|
|
234
236
|
| `state` | [`SubmissionStatus`](#submissionstatus) | The status of a submission |
|
|
@@ -454,7 +456,7 @@ ___
|
|
|
454
456
|
| `encrypt?` | `boolean` | whether the field should be encrypted |
|
|
455
457
|
| `enum?` | `string`[] | - |
|
|
456
458
|
| `examples?` | `unknown`[] | - |
|
|
457
|
-
| `format?` | ``"date"`` \| ``"date-time"`` | - |
|
|
459
|
+
| `format?` | ``"date"`` \| ``"date-time"`` \| ``"uri"`` | - |
|
|
458
460
|
| `image_silhouette?` | `string` | If this schema requires a photo of a document, you can specify a URL to a silhouette image which will be overlaid on top of the camera. For best results, the image should have a transparent background + minimal white foreground |
|
|
459
461
|
| `items?` | `Object` | `items` is used for nested arrays, (while `properties` is used for nested objects) |
|
|
460
462
|
| `items.properties` | `Object` | - |
|
|
@@ -589,6 +591,38 @@ These `n_id`s point to service provider profile objects
|
|
|
589
591
|
|
|
590
592
|
___
|
|
591
593
|
|
|
594
|
+
### WId
|
|
595
|
+
|
|
596
|
+
Ƭ **WId**: `StringWithIdentity`<``"WId"``\>
|
|
597
|
+
|
|
598
|
+
A `wi_id` is the ID of a @see Webhook
|
|
599
|
+
|
|
600
|
+
___
|
|
601
|
+
|
|
602
|
+
### Webhook
|
|
603
|
+
|
|
604
|
+
Ƭ **Webhook**: `Object`
|
|
605
|
+
|
|
606
|
+
#### Type declaration
|
|
607
|
+
|
|
608
|
+
| Name | Type | Description |
|
|
609
|
+
| :------ | :------ | :------ |
|
|
610
|
+
| `date_created` | `string` | ISO Date |
|
|
611
|
+
| `date_updated` | `string` | ISO Date |
|
|
612
|
+
| `provider_subscription_credentials` | `unknown` | - |
|
|
613
|
+
| `provider_webhook_id` | [`NId`](#nid) | n_id of "the webhook provider which can be set up against a service provider" |
|
|
614
|
+
| `status` | `unknown` | - |
|
|
615
|
+
| `webhook_action` | { `webhook_action_type`: `string` }[] | - |
|
|
616
|
+
| `webhook_field_mapping_schema` | `Object` | - |
|
|
617
|
+
| `webhook_filter_schema` | `Object` | - |
|
|
618
|
+
| `webhook_filter_schema.field_name` | `string` | - |
|
|
619
|
+
| `webhook_filter_schema.field_value` | `string` | - |
|
|
620
|
+
| `webhook_filter_schema.operator` | `string` | - |
|
|
621
|
+
| `webhook_filter_source` | `string` | - |
|
|
622
|
+
| `wi_id` | [`WId`](#wid) | - |
|
|
623
|
+
|
|
624
|
+
___
|
|
625
|
+
|
|
592
626
|
### WizardConfig
|
|
593
627
|
|
|
594
628
|
Ƭ **WizardConfig**: `Object`
|
package/dist/raytio.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export declare type UId = StringWithIdentity<"UId">;
|
|
|
20
20
|
export declare type AId = StringWithIdentity<"AId">;
|
|
21
21
|
/** An `o_id` is the ID of an @see Organization */
|
|
22
22
|
export declare type OId = StringWithIdentity<"OId">;
|
|
23
|
+
/** A `wi_id` is the ID of a @see Webhook */
|
|
24
|
+
export declare type WId = StringWithIdentity<"WId">;
|
|
23
25
|
export declare type DataTypes = "string" | "number" | "boolean" | "object" | "integer" | "array" | "null";
|
|
24
26
|
export declare type SubmissionStatus = "Submitted" | "Processing" | "Rejected" | "Expired" | "Completed" | "DataChanged" | "Received" | "Accepted";
|
|
25
27
|
/** You can supply an option type argument if you know exactly what the properties will be */
|
|
@@ -148,6 +150,8 @@ export declare type Instance = {
|
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
relationships?: Relationship[];
|
|
153
|
+
/** added by the client once it calculates the score */
|
|
154
|
+
score?: unknown;
|
|
151
155
|
};
|
|
152
156
|
/**
|
|
153
157
|
* An organization.
|
|
@@ -183,4 +187,27 @@ export declare type Validation = {
|
|
|
183
187
|
};
|
|
184
188
|
};
|
|
185
189
|
};
|
|
190
|
+
export declare type Webhook = {
|
|
191
|
+
wi_id: WId;
|
|
192
|
+
/** n_id of "the webhook provider which can be set up against a service provider" */
|
|
193
|
+
provider_webhook_id: NId;
|
|
194
|
+
status: unknown;
|
|
195
|
+
/** ISO Date */
|
|
196
|
+
date_created: string;
|
|
197
|
+
/** ISO Date */
|
|
198
|
+
date_updated: string;
|
|
199
|
+
webhook_filter_schema: {
|
|
200
|
+
operator: string;
|
|
201
|
+
field_value: string;
|
|
202
|
+
field_name: string;
|
|
203
|
+
};
|
|
204
|
+
webhook_action: {
|
|
205
|
+
webhook_action_type: string;
|
|
206
|
+
}[];
|
|
207
|
+
provider_subscription_credentials: unknown;
|
|
208
|
+
webhook_filter_source: string;
|
|
209
|
+
webhook_field_mapping_schema: {
|
|
210
|
+
[key: string]: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
186
213
|
export {};
|
package/dist/schema.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare type SchemaField = {
|
|
|
32
32
|
pattern?: string;
|
|
33
33
|
/** whether the field should be encrypted */
|
|
34
34
|
encrypt?: boolean;
|
|
35
|
-
format?: "date" | "date-time";
|
|
35
|
+
format?: "date" | "date-time" | "uri";
|
|
36
36
|
contentMediaType?: string;
|
|
37
37
|
contentEncoding?: "base64";
|
|
38
38
|
/** `items` is used for nested arrays, (while `properties` is used for nested objects) */
|
package/dist/theme.d.ts
CHANGED
package/package.json
CHANGED
package/src/raytio.ts
CHANGED
|
@@ -21,6 +21,8 @@ export type UId = StringWithIdentity<"UId">;
|
|
|
21
21
|
export type AId = StringWithIdentity<"AId">;
|
|
22
22
|
/** An `o_id` is the ID of an @see Organization */
|
|
23
23
|
export type OId = StringWithIdentity<"OId">;
|
|
24
|
+
/** A `wi_id` is the ID of a @see Webhook */
|
|
25
|
+
export type WId = StringWithIdentity<"WId">;
|
|
24
26
|
|
|
25
27
|
export type DataTypes =
|
|
26
28
|
| "string"
|
|
@@ -190,6 +192,11 @@ export type Instance = {
|
|
|
190
192
|
};
|
|
191
193
|
};
|
|
192
194
|
relationships?: Relationship[];
|
|
195
|
+
|
|
196
|
+
/** added by the client once it calculates the score */
|
|
197
|
+
// Defined as `unknown` instead of `ScoreResult` because it could be nonsense,
|
|
198
|
+
// or a deprected version of `ScoreResult`.
|
|
199
|
+
score?: unknown;
|
|
193
200
|
};
|
|
194
201
|
|
|
195
202
|
/**
|
|
@@ -227,3 +234,26 @@ export type Validation = {
|
|
|
227
234
|
};
|
|
228
235
|
};
|
|
229
236
|
};
|
|
237
|
+
|
|
238
|
+
export type Webhook = {
|
|
239
|
+
wi_id: WId;
|
|
240
|
+
/** n_id of "the webhook provider which can be set up against a service provider" */
|
|
241
|
+
provider_webhook_id: NId;
|
|
242
|
+
status: unknown;
|
|
243
|
+
/** ISO Date */
|
|
244
|
+
date_created: string;
|
|
245
|
+
/** ISO Date */
|
|
246
|
+
date_updated: string;
|
|
247
|
+
|
|
248
|
+
webhook_filter_schema: {
|
|
249
|
+
operator: string;
|
|
250
|
+
field_value: string;
|
|
251
|
+
field_name: string;
|
|
252
|
+
};
|
|
253
|
+
webhook_action: { webhook_action_type: string }[];
|
|
254
|
+
provider_subscription_credentials: unknown;
|
|
255
|
+
webhook_filter_source: string;
|
|
256
|
+
webhook_field_mapping_schema: {
|
|
257
|
+
[key: string]: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
package/src/schema.ts
CHANGED
|
@@ -79,7 +79,7 @@ export type SchemaField = {
|
|
|
79
79
|
pattern?: string;
|
|
80
80
|
/** whether the field should be encrypted */
|
|
81
81
|
encrypt?: boolean;
|
|
82
|
-
format?: "date" | "date-time";
|
|
82
|
+
format?: "date" | "date-time" | "uri";
|
|
83
83
|
contentMediaType?: string;
|
|
84
84
|
contentEncoding?: "base64";
|
|
85
85
|
/** `items` is used for nested arrays, (while `properties` is used for nested objects) */
|