@glidevvr/storage-payload-types-pkg 1.0.89 → 1.0.91

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 (2) hide show
  1. package/package.json +1 -1
  2. package/payload-types.ts +168 -291
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -1235,126 +1235,23 @@ export interface FormBlock {
1235
1235
  export interface Form {
1236
1236
  id: string;
1237
1237
  tenant?: (string | null) | Tenant;
1238
- createdBy?: string | null;
1239
- updatedBy?: string | null;
1240
1238
  title: string;
1241
1239
  fields?:
1242
1240
  | (
1243
- | {
1244
- name: string;
1245
- label?: string | null;
1246
- width?: number | null;
1247
- required?: boolean | null;
1248
- defaultValue?: boolean | null;
1249
- id?: string | null;
1250
- blockName?: string | null;
1251
- blockType: 'checkbox';
1252
- }
1253
- | {
1254
- name: string;
1255
- label?: string | null;
1256
- width?: number | null;
1257
- required?: boolean | null;
1258
- id?: string | null;
1259
- blockName?: string | null;
1260
- blockType: 'country';
1261
- }
1262
- | {
1263
- name: string;
1264
- label?: string | null;
1265
- width?: number | null;
1266
- defaultValue?: string | null;
1267
- required?: boolean | null;
1268
- id?: string | null;
1269
- blockName?: string | null;
1270
- blockType: 'email';
1271
- }
1272
- | {
1273
- message?: {
1274
- root: {
1275
- type: string;
1276
- children: {
1277
- type: string;
1278
- version: number;
1279
- [k: string]: unknown;
1280
- }[];
1281
- direction: ('ltr' | 'rtl') | null;
1282
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1283
- indent: number;
1284
- version: number;
1285
- };
1286
- [k: string]: unknown;
1287
- } | null;
1288
- id?: string | null;
1289
- blockName?: string | null;
1290
- blockType: 'message';
1291
- }
1292
- | {
1293
- name: string;
1294
- label?: string | null;
1295
- width?: number | null;
1296
- defaultValue?: number | null;
1297
- required?: boolean | null;
1298
- id?: string | null;
1299
- blockName?: string | null;
1300
- blockType: 'number';
1301
- }
1302
- | {
1303
- name: string;
1304
- label?: string | null;
1305
- width?: number | null;
1306
- defaultValue?: string | null;
1307
- placeholder?: string | null;
1308
- options?:
1309
- | {
1310
- label: string;
1311
- value: string;
1312
- id?: string | null;
1313
- }[]
1314
- | null;
1315
- required?: boolean | null;
1316
- id?: string | null;
1317
- blockName?: string | null;
1318
- blockType: 'select';
1319
- }
1320
- | {
1321
- name: string;
1322
- label?: string | null;
1323
- width?: number | null;
1324
- required?: boolean | null;
1325
- id?: string | null;
1326
- blockName?: string | null;
1327
- blockType: 'state';
1328
- }
1329
- | {
1330
- name: string;
1331
- label?: string | null;
1332
- width?: number | null;
1333
- defaultValue?: string | null;
1334
- required?: boolean | null;
1335
- id?: string | null;
1336
- blockName?: string | null;
1337
- blockType: 'text';
1338
- }
1339
- | {
1340
- name: string;
1341
- label?: string | null;
1342
- width?: number | null;
1343
- defaultValue?: string | null;
1344
- required?: boolean | null;
1345
- id?: string | null;
1346
- blockName?: string | null;
1347
- blockType: 'textarea';
1348
- }
1349
1241
  | FacilitySelectField
1242
+ | EmailField
1350
1243
  | PhoneField
1244
+ | FirstNameField
1245
+ | LastNameField
1246
+ | MessageField
1247
+ | CurrentCustomerField
1351
1248
  )[]
1352
1249
  | null;
1353
1250
  submitButtonLabel?: string | null;
1251
+ confirmationType: 'message';
1354
1252
  /**
1355
- * Choose whether to display an on-page message or redirect to a different page after they submit the form.
1253
+ * The on-page message that will be displayed after the form is submitted.
1356
1254
  */
1357
- confirmationType?: ('message' | 'redirect') | null;
1358
1255
  confirmationMessage?: {
1359
1256
  root: {
1360
1257
  type: string;
@@ -1370,59 +1267,8 @@ export interface Form {
1370
1267
  };
1371
1268
  [k: string]: unknown;
1372
1269
  } | null;
1373
- redirect?: {
1374
- type?: ('reference' | 'custom') | null;
1375
- reference?:
1376
- | ({
1377
- relationTo: 'pages';
1378
- value: string | Page;
1379
- } | null)
1380
- | ({
1381
- relationTo: 'posts';
1382
- value: string | Post;
1383
- } | null)
1384
- | ({
1385
- relationTo: 'facilities';
1386
- value: string | Facility;
1387
- } | null)
1388
- | ({
1389
- relationTo: 'markets';
1390
- value: string | Market;
1391
- } | null);
1392
- url?: string | null;
1393
- };
1394
- /**
1395
- * Send custom emails when the form submits. Use comma separated lists to send the same email to multiple recipients. To reference a value from this form, wrap that field's name with double curly brackets, i.e. {{firstName}}. You can use a wildcard {{*}} to output all data and {{*:table}} to format it as an HTML table in the email.
1396
- */
1397
- emails?:
1398
- | {
1399
- emailTo?: string | null;
1400
- cc?: string | null;
1401
- bcc?: string | null;
1402
- replyTo?: string | null;
1403
- emailFrom?: string | null;
1404
- subject: string;
1405
- /**
1406
- * Enter the message that should be sent in this email.
1407
- */
1408
- message?: {
1409
- root: {
1410
- type: string;
1411
- children: {
1412
- type: string;
1413
- version: number;
1414
- [k: string]: unknown;
1415
- }[];
1416
- direction: ('ltr' | 'rtl') | null;
1417
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1418
- indent: number;
1419
- version: number;
1420
- };
1421
- [k: string]: unknown;
1422
- } | null;
1423
- id?: string | null;
1424
- }[]
1425
- | null;
1270
+ createdBy?: string | null;
1271
+ updatedBy?: string | null;
1426
1272
  updatedAt: string;
1427
1273
  createdAt: string;
1428
1274
  }
@@ -1432,7 +1278,7 @@ export interface Form {
1432
1278
  */
1433
1279
  export interface FacilitySelectField {
1434
1280
  name: string;
1435
- label?: string | null;
1281
+ label: string;
1436
1282
  /**
1437
1283
  * The default value of the field. Enter the SE ID of the facility to be selected by default.
1438
1284
  */
@@ -1444,13 +1290,28 @@ export interface FacilitySelectField {
1444
1290
  blockName?: string | null;
1445
1291
  blockType: 'facilitySelect';
1446
1292
  }
1293
+ /**
1294
+ * This interface was referenced by `Config`'s JSON-Schema
1295
+ * via the `definition` "EmailField".
1296
+ */
1297
+ export interface EmailField {
1298
+ name: string;
1299
+ label: string;
1300
+ defaultValue?: string | null;
1301
+ placeholder?: string | null;
1302
+ width?: number | null;
1303
+ required?: boolean | null;
1304
+ id?: string | null;
1305
+ blockName?: string | null;
1306
+ blockType: 'email';
1307
+ }
1447
1308
  /**
1448
1309
  * This interface was referenced by `Config`'s JSON-Schema
1449
1310
  * via the `definition` "PhoneField".
1450
1311
  */
1451
1312
  export interface PhoneField {
1452
1313
  name: string;
1453
- label?: string | null;
1314
+ label: string;
1454
1315
  defaultValue?: string | null;
1455
1316
  placeholder?: string | null;
1456
1317
  width?: number | null;
@@ -1459,6 +1320,64 @@ export interface PhoneField {
1459
1320
  blockName?: string | null;
1460
1321
  blockType: 'phone';
1461
1322
  }
1323
+ /**
1324
+ * This interface was referenced by `Config`'s JSON-Schema
1325
+ * via the `definition` "FirstNameField".
1326
+ */
1327
+ export interface FirstNameField {
1328
+ name: string;
1329
+ label: string;
1330
+ defaultValue?: string | null;
1331
+ placeholder?: string | null;
1332
+ width?: number | null;
1333
+ required?: boolean | null;
1334
+ id?: string | null;
1335
+ blockName?: string | null;
1336
+ blockType: 'firstName';
1337
+ }
1338
+ /**
1339
+ * This interface was referenced by `Config`'s JSON-Schema
1340
+ * via the `definition` "LastNameField".
1341
+ */
1342
+ export interface LastNameField {
1343
+ name: string;
1344
+ label: string;
1345
+ defaultValue?: string | null;
1346
+ placeholder?: string | null;
1347
+ width?: number | null;
1348
+ required?: boolean | null;
1349
+ id?: string | null;
1350
+ blockName?: string | null;
1351
+ blockType: 'lastName';
1352
+ }
1353
+ /**
1354
+ * This interface was referenced by `Config`'s JSON-Schema
1355
+ * via the `definition` "MessageField".
1356
+ */
1357
+ export interface MessageField {
1358
+ name: string;
1359
+ label: string;
1360
+ defaultValue?: string | null;
1361
+ placeholder?: string | null;
1362
+ width?: number | null;
1363
+ required?: boolean | null;
1364
+ id?: string | null;
1365
+ blockName?: string | null;
1366
+ blockType: 'message';
1367
+ }
1368
+ /**
1369
+ * This interface was referenced by `Config`'s JSON-Schema
1370
+ * via the `definition` "CurrentCustomerField".
1371
+ */
1372
+ export interface CurrentCustomerField {
1373
+ name: string;
1374
+ label: string;
1375
+ defaultValue?: boolean | null;
1376
+ width?: number | null;
1377
+ id?: string | null;
1378
+ blockName?: string | null;
1379
+ blockType: 'currentCustomer';
1380
+ }
1462
1381
  /**
1463
1382
  * This interface was referenced by `Config`'s JSON-Schema
1464
1383
  * via the `definition` "GalleryBlock".
@@ -1862,15 +1781,20 @@ export interface Build {
1862
1781
  createdAt: string;
1863
1782
  }
1864
1783
  /**
1784
+ * Form submissions are sent to the selected facility's email address.
1785
+ *
1865
1786
  * This interface was referenced by `Config`'s JSON-Schema
1866
1787
  * via the `definition` "form-submissions".
1867
1788
  */
1868
1789
  export interface FormSubmission {
1869
1790
  id: string;
1870
1791
  tenant?: (string | null) | Tenant;
1871
- createdBy?: string | null;
1872
- updatedBy?: string | null;
1873
1792
  form: string | Form;
1793
+ status?: string | null;
1794
+ /**
1795
+ * The response message from the SE API, or other error message.
1796
+ */
1797
+ responseMessage?: string | null;
1874
1798
  submissionData?:
1875
1799
  | {
1876
1800
  field: string;
@@ -2948,138 +2872,23 @@ export interface BuildsSelect<T extends boolean = true> {
2948
2872
  */
2949
2873
  export interface FormsSelect<T extends boolean = true> {
2950
2874
  tenant?: T;
2951
- createdBy?: T;
2952
- updatedBy?: T;
2953
2875
  title?: T;
2954
2876
  fields?:
2955
2877
  | T
2956
2878
  | {
2957
- checkbox?:
2958
- | T
2959
- | {
2960
- name?: T;
2961
- label?: T;
2962
- width?: T;
2963
- required?: T;
2964
- defaultValue?: T;
2965
- id?: T;
2966
- blockName?: T;
2967
- };
2968
- country?:
2969
- | T
2970
- | {
2971
- name?: T;
2972
- label?: T;
2973
- width?: T;
2974
- required?: T;
2975
- id?: T;
2976
- blockName?: T;
2977
- };
2978
- email?:
2979
- | T
2980
- | {
2981
- name?: T;
2982
- label?: T;
2983
- width?: T;
2984
- defaultValue?: T;
2985
- required?: T;
2986
- id?: T;
2987
- blockName?: T;
2988
- };
2989
- message?:
2990
- | T
2991
- | {
2992
- message?: T;
2993
- id?: T;
2994
- blockName?: T;
2995
- };
2996
- number?:
2997
- | T
2998
- | {
2999
- name?: T;
3000
- label?: T;
3001
- width?: T;
3002
- defaultValue?: T;
3003
- required?: T;
3004
- id?: T;
3005
- blockName?: T;
3006
- };
3007
- select?:
3008
- | T
3009
- | {
3010
- name?: T;
3011
- label?: T;
3012
- width?: T;
3013
- defaultValue?: T;
3014
- placeholder?: T;
3015
- options?:
3016
- | T
3017
- | {
3018
- label?: T;
3019
- value?: T;
3020
- id?: T;
3021
- };
3022
- required?: T;
3023
- id?: T;
3024
- blockName?: T;
3025
- };
3026
- state?:
3027
- | T
3028
- | {
3029
- name?: T;
3030
- label?: T;
3031
- width?: T;
3032
- required?: T;
3033
- id?: T;
3034
- blockName?: T;
3035
- };
3036
- text?:
3037
- | T
3038
- | {
3039
- name?: T;
3040
- label?: T;
3041
- width?: T;
3042
- defaultValue?: T;
3043
- required?: T;
3044
- id?: T;
3045
- blockName?: T;
3046
- };
3047
- textarea?:
3048
- | T
3049
- | {
3050
- name?: T;
3051
- label?: T;
3052
- width?: T;
3053
- defaultValue?: T;
3054
- required?: T;
3055
- id?: T;
3056
- blockName?: T;
3057
- };
3058
2879
  facilitySelect?: T | FacilitySelectFieldSelect<T>;
2880
+ email?: T | EmailFieldSelect<T>;
3059
2881
  phone?: T | PhoneFieldSelect<T>;
2882
+ firstName?: T | FirstNameFieldSelect<T>;
2883
+ lastName?: T | LastNameFieldSelect<T>;
2884
+ message?: T | MessageFieldSelect<T>;
2885
+ currentCustomer?: T | CurrentCustomerFieldSelect<T>;
3060
2886
  };
3061
2887
  submitButtonLabel?: T;
3062
2888
  confirmationType?: T;
3063
2889
  confirmationMessage?: T;
3064
- redirect?:
3065
- | T
3066
- | {
3067
- type?: T;
3068
- reference?: T;
3069
- url?: T;
3070
- };
3071
- emails?:
3072
- | T
3073
- | {
3074
- emailTo?: T;
3075
- cc?: T;
3076
- bcc?: T;
3077
- replyTo?: T;
3078
- emailFrom?: T;
3079
- subject?: T;
3080
- message?: T;
3081
- id?: T;
3082
- };
2890
+ createdBy?: T;
2891
+ updatedBy?: T;
3083
2892
  updatedAt?: T;
3084
2893
  createdAt?: T;
3085
2894
  }
@@ -3097,6 +2906,20 @@ export interface FacilitySelectFieldSelect<T extends boolean = true> {
3097
2906
  id?: T;
3098
2907
  blockName?: T;
3099
2908
  }
2909
+ /**
2910
+ * This interface was referenced by `Config`'s JSON-Schema
2911
+ * via the `definition` "EmailField_select".
2912
+ */
2913
+ export interface EmailFieldSelect<T extends boolean = true> {
2914
+ name?: T;
2915
+ label?: T;
2916
+ defaultValue?: T;
2917
+ placeholder?: T;
2918
+ width?: T;
2919
+ required?: T;
2920
+ id?: T;
2921
+ blockName?: T;
2922
+ }
3100
2923
  /**
3101
2924
  * This interface was referenced by `Config`'s JSON-Schema
3102
2925
  * via the `definition` "PhoneField_select".
@@ -3111,15 +2934,69 @@ export interface PhoneFieldSelect<T extends boolean = true> {
3111
2934
  id?: T;
3112
2935
  blockName?: T;
3113
2936
  }
2937
+ /**
2938
+ * This interface was referenced by `Config`'s JSON-Schema
2939
+ * via the `definition` "FirstNameField_select".
2940
+ */
2941
+ export interface FirstNameFieldSelect<T extends boolean = true> {
2942
+ name?: T;
2943
+ label?: T;
2944
+ defaultValue?: T;
2945
+ placeholder?: T;
2946
+ width?: T;
2947
+ required?: T;
2948
+ id?: T;
2949
+ blockName?: T;
2950
+ }
2951
+ /**
2952
+ * This interface was referenced by `Config`'s JSON-Schema
2953
+ * via the `definition` "LastNameField_select".
2954
+ */
2955
+ export interface LastNameFieldSelect<T extends boolean = true> {
2956
+ name?: T;
2957
+ label?: T;
2958
+ defaultValue?: T;
2959
+ placeholder?: T;
2960
+ width?: T;
2961
+ required?: T;
2962
+ id?: T;
2963
+ blockName?: T;
2964
+ }
2965
+ /**
2966
+ * This interface was referenced by `Config`'s JSON-Schema
2967
+ * via the `definition` "MessageField_select".
2968
+ */
2969
+ export interface MessageFieldSelect<T extends boolean = true> {
2970
+ name?: T;
2971
+ label?: T;
2972
+ defaultValue?: T;
2973
+ placeholder?: T;
2974
+ width?: T;
2975
+ required?: T;
2976
+ id?: T;
2977
+ blockName?: T;
2978
+ }
2979
+ /**
2980
+ * This interface was referenced by `Config`'s JSON-Schema
2981
+ * via the `definition` "CurrentCustomerField_select".
2982
+ */
2983
+ export interface CurrentCustomerFieldSelect<T extends boolean = true> {
2984
+ name?: T;
2985
+ label?: T;
2986
+ defaultValue?: T;
2987
+ width?: T;
2988
+ id?: T;
2989
+ blockName?: T;
2990
+ }
3114
2991
  /**
3115
2992
  * This interface was referenced by `Config`'s JSON-Schema
3116
2993
  * via the `definition` "form-submissions_select".
3117
2994
  */
3118
2995
  export interface FormSubmissionsSelect<T extends boolean = true> {
3119
2996
  tenant?: T;
3120
- createdBy?: T;
3121
- updatedBy?: T;
3122
2997
  form?: T;
2998
+ status?: T;
2999
+ responseMessage?: T;
3123
3000
  submissionData?:
3124
3001
  | T
3125
3002
  | {