@01.software/sdk 0.2.4 → 0.2.6

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.
@@ -272,7 +272,7 @@ interface User {
272
272
  roles: ('super-admin' | 'user')[];
273
273
  tenants?: {
274
274
  tenant: string | Tenant;
275
- roles: ('tenant-admin' | 'tenant-viewer')[];
275
+ roles: ('tenant-admin' | 'tenant-editor' | 'tenant-viewer')[];
276
276
  id?: string | null;
277
277
  }[] | null;
278
278
  emailPreferences?: {
@@ -373,6 +373,7 @@ interface Media {
373
373
  */
374
374
  interface Audience {
375
375
  id: string;
376
+ _order?: string | null;
376
377
  email: string;
377
378
  firstName?: string | null;
378
379
  lastName?: string | null;
@@ -1008,6 +1009,7 @@ interface Product {
1008
1009
  } | unknown[] | string | number | boolean | null;
1009
1010
  updatedAt: string;
1010
1011
  createdAt: string;
1012
+ deletedAt?: string | null;
1011
1013
  }
1012
1014
  /**
1013
1015
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1104,6 +1106,7 @@ interface ProductVariant {
1104
1106
  };
1105
1107
  updatedAt: string;
1106
1108
  createdAt: string;
1109
+ deletedAt?: string | null;
1107
1110
  }
1108
1111
  /**
1109
1112
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1136,6 +1139,7 @@ interface ProductOption {
1136
1139
  } | unknown[] | string | number | boolean | null;
1137
1140
  updatedAt: string;
1138
1141
  createdAt: string;
1142
+ deletedAt?: string | null;
1139
1143
  }
1140
1144
  /**
1141
1145
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1157,6 +1161,7 @@ interface ProductCategory {
1157
1161
  color?: string | null;
1158
1162
  updatedAt: string;
1159
1163
  createdAt: string;
1164
+ deletedAt?: string | null;
1160
1165
  }
1161
1166
  /**
1162
1167
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1178,6 +1183,7 @@ interface ProductTag {
1178
1183
  color?: string | null;
1179
1184
  updatedAt: string;
1180
1185
  createdAt: string;
1186
+ deletedAt?: string | null;
1181
1187
  }
1182
1188
  /**
1183
1189
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1218,6 +1224,7 @@ interface ProductCollection {
1218
1224
  } | unknown[] | string | number | boolean | null;
1219
1225
  updatedAt: string;
1220
1226
  createdAt: string;
1227
+ deletedAt?: string | null;
1221
1228
  }
1222
1229
  /**
1223
1230
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1245,7 +1252,21 @@ interface Brand {
1245
1252
  * Logo mark / Icon (optional)
1246
1253
  */
1247
1254
  logomark?: (string | null) | BrandLogo;
1248
- description?: string | null;
1255
+ description?: {
1256
+ root: {
1257
+ type: string;
1258
+ children: {
1259
+ type: any;
1260
+ version: number;
1261
+ [k: string]: unknown;
1262
+ }[];
1263
+ direction: ('ltr' | 'rtl') | null;
1264
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1265
+ indent: number;
1266
+ version: number;
1267
+ };
1268
+ [k: string]: unknown;
1269
+ } | null;
1249
1270
  /**
1250
1271
  * Brand official website URL
1251
1272
  */
@@ -1255,6 +1276,7 @@ interface Brand {
1255
1276
  } | unknown[] | string | number | boolean | null;
1256
1277
  updatedAt: string;
1257
1278
  createdAt: string;
1279
+ deletedAt?: string | null;
1258
1280
  }
1259
1281
  /**
1260
1282
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1295,6 +1317,7 @@ interface ShippingPolicy {
1295
1317
  } | unknown[] | string | number | boolean | null;
1296
1318
  updatedAt: string;
1297
1319
  createdAt: string;
1320
+ deletedAt?: string | null;
1298
1321
  }
1299
1322
  /**
1300
1323
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1366,6 +1389,8 @@ interface Order {
1366
1389
  */
1367
1390
  interface Customer {
1368
1391
  id: string;
1392
+ _customers_customers_order?: string | null;
1393
+ _order?: string | null;
1369
1394
  tenant?: (string | null) | Tenant;
1370
1395
  name: string;
1371
1396
  email?: string | null;
@@ -1441,6 +1466,7 @@ interface CustomerGroup {
1441
1466
  };
1442
1467
  updatedAt: string;
1443
1468
  createdAt: string;
1469
+ deletedAt?: string | null;
1444
1470
  }
1445
1471
  /**
1446
1472
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1753,6 +1779,7 @@ interface CartItem {
1753
1779
  */
1754
1780
  interface Discount {
1755
1781
  id: string;
1782
+ _order?: string | null;
1756
1783
  tenant?: (string | null) | Tenant;
1757
1784
  /**
1758
1785
  * Unique discount code
@@ -1819,6 +1846,7 @@ interface Discount {
1819
1846
  } | unknown[] | string | number | boolean | null;
1820
1847
  updatedAt: string;
1821
1848
  createdAt: string;
1849
+ deletedAt?: string | null;
1822
1850
  }
1823
1851
  /**
1824
1852
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1879,6 +1907,7 @@ interface Post {
1879
1907
  } | unknown[] | string | number | boolean | null;
1880
1908
  updatedAt: string;
1881
1909
  createdAt: string;
1910
+ deletedAt?: string | null;
1882
1911
  _status?: ('draft' | 'published') | null;
1883
1912
  }
1884
1913
  /**
@@ -1963,6 +1992,7 @@ interface PostAuthor {
1963
1992
  } | unknown[] | string | number | boolean | null;
1964
1993
  updatedAt: string;
1965
1994
  createdAt: string;
1995
+ deletedAt?: string | null;
1966
1996
  }
1967
1997
  /**
1968
1998
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1984,6 +2014,7 @@ interface PostCategory {
1984
2014
  color?: string | null;
1985
2015
  updatedAt: string;
1986
2016
  createdAt: string;
2017
+ deletedAt?: string | null;
1987
2018
  }
1988
2019
  /**
1989
2020
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2005,6 +2036,7 @@ interface PostTag {
2005
2036
  color?: string | null;
2006
2037
  updatedAt: string;
2007
2038
  createdAt: string;
2039
+ deletedAt?: string | null;
2008
2040
  }
2009
2041
  /**
2010
2042
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2084,6 +2116,7 @@ interface Document {
2084
2116
  } | unknown[] | string | number | boolean | null;
2085
2117
  updatedAt: string;
2086
2118
  createdAt: string;
2119
+ deletedAt?: string | null;
2087
2120
  _status?: ('draft' | 'published') | null;
2088
2121
  }
2089
2122
  /**
@@ -2105,6 +2138,7 @@ interface DocumentType {
2105
2138
  color?: string | null;
2106
2139
  updatedAt: string;
2107
2140
  createdAt: string;
2141
+ deletedAt?: string | null;
2108
2142
  }
2109
2143
  /**
2110
2144
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2182,6 +2216,7 @@ interface DocumentCategory {
2182
2216
  color?: string | null;
2183
2217
  updatedAt: string;
2184
2218
  createdAt: string;
2219
+ deletedAt?: string | null;
2185
2220
  }
2186
2221
  /**
2187
2222
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2189,6 +2224,7 @@ interface DocumentCategory {
2189
2224
  */
2190
2225
  interface Playlist {
2191
2226
  id: string;
2227
+ _order?: string | null;
2192
2228
  tenant?: (string | null) | Tenant;
2193
2229
  title: string;
2194
2230
  description?: string | null;
@@ -2222,6 +2258,7 @@ interface Playlist {
2222
2258
  } | unknown[] | string | number | boolean | null;
2223
2259
  updatedAt: string;
2224
2260
  createdAt: string;
2261
+ deletedAt?: string | null;
2225
2262
  }
2226
2263
  /**
2227
2264
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2229,6 +2266,7 @@ interface Playlist {
2229
2266
  */
2230
2267
  interface Music {
2231
2268
  id: string;
2269
+ _order?: string | null;
2232
2270
  _musics_musics_order?: string | null;
2233
2271
  tenant?: (string | null) | Tenant;
2234
2272
  playlist: string | Playlist;
@@ -2251,6 +2289,7 @@ interface Music {
2251
2289
  isValid?: boolean | null;
2252
2290
  updatedAt: string;
2253
2291
  createdAt: string;
2292
+ deletedAt?: string | null;
2254
2293
  }
2255
2294
  /**
2256
2295
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2314,6 +2353,7 @@ interface PlaylistImage {
2314
2353
  */
2315
2354
  interface Form {
2316
2355
  id: string;
2356
+ _order?: string | null;
2317
2357
  tenant?: (string | null) | Tenant;
2318
2358
  title: string;
2319
2359
  description?: string | null;
@@ -2474,6 +2514,7 @@ interface Form {
2474
2514
  }[] | null;
2475
2515
  updatedAt: string;
2476
2516
  createdAt: string;
2517
+ deletedAt?: string | null;
2477
2518
  }
2478
2519
  /**
2479
2520
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2490,6 +2531,7 @@ interface FormSubmission {
2490
2531
  }[] | null;
2491
2532
  updatedAt: string;
2492
2533
  createdAt: string;
2534
+ deletedAt?: string | null;
2493
2535
  }
2494
2536
  /**
2495
2537
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2762,6 +2804,7 @@ interface MediaSelect<T extends boolean = true> {
2762
2804
  * via the `definition` "audiences_select".
2763
2805
  */
2764
2806
  interface AudiencesSelect<T extends boolean = true> {
2807
+ _order?: T;
2765
2808
  email?: T;
2766
2809
  firstName?: T;
2767
2810
  lastName?: T;
@@ -3114,6 +3157,7 @@ interface ProductsSelect<T extends boolean = true> {
3114
3157
  metadata?: T;
3115
3158
  updatedAt?: T;
3116
3159
  createdAt?: T;
3160
+ deletedAt?: T;
3117
3161
  }
3118
3162
  /**
3119
3163
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3135,6 +3179,7 @@ interface ProductVariantsSelect<T extends boolean = true> {
3135
3179
  productOptions?: T;
3136
3180
  updatedAt?: T;
3137
3181
  createdAt?: T;
3182
+ deletedAt?: T;
3138
3183
  }
3139
3184
  /**
3140
3185
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3155,6 +3200,7 @@ interface ProductOptionsSelect<T extends boolean = true> {
3155
3200
  metadata?: T;
3156
3201
  updatedAt?: T;
3157
3202
  createdAt?: T;
3203
+ deletedAt?: T;
3158
3204
  }
3159
3205
  /**
3160
3206
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3172,6 +3218,7 @@ interface ProductCategoriesSelect<T extends boolean = true> {
3172
3218
  color?: T;
3173
3219
  updatedAt?: T;
3174
3220
  createdAt?: T;
3221
+ deletedAt?: T;
3175
3222
  }
3176
3223
  /**
3177
3224
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3189,6 +3236,7 @@ interface ProductTagsSelect<T extends boolean = true> {
3189
3236
  color?: T;
3190
3237
  updatedAt?: T;
3191
3238
  createdAt?: T;
3239
+ deletedAt?: T;
3192
3240
  }
3193
3241
  /**
3194
3242
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3209,6 +3257,7 @@ interface ProductCollectionsSelect<T extends boolean = true> {
3209
3257
  metadata?: T;
3210
3258
  updatedAt?: T;
3211
3259
  createdAt?: T;
3260
+ deletedAt?: T;
3212
3261
  }
3213
3262
  /**
3214
3263
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3228,6 +3277,7 @@ interface BrandsSelect<T extends boolean = true> {
3228
3277
  metadata?: T;
3229
3278
  updatedAt?: T;
3230
3279
  createdAt?: T;
3280
+ deletedAt?: T;
3231
3281
  }
3232
3282
  /**
3233
3283
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3539,6 +3589,8 @@ interface TransactionsSelect<T extends boolean = true> {
3539
3589
  * via the `definition` "customers_select".
3540
3590
  */
3541
3591
  interface CustomersSelect<T extends boolean = true> {
3592
+ _customers_customers_order?: T;
3593
+ _order?: T;
3542
3594
  tenant?: T;
3543
3595
  name?: T;
3544
3596
  email?: T;
@@ -3599,6 +3651,7 @@ interface CustomerGroupsSelect<T extends boolean = true> {
3599
3651
  customers?: T;
3600
3652
  updatedAt?: T;
3601
3653
  createdAt?: T;
3654
+ deletedAt?: T;
3602
3655
  }
3603
3656
  /**
3604
3657
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3703,6 +3756,7 @@ interface CartItemsSelect<T extends boolean = true> {
3703
3756
  * via the `definition` "discounts_select".
3704
3757
  */
3705
3758
  interface DiscountsSelect<T extends boolean = true> {
3759
+ _order?: T;
3706
3760
  tenant?: T;
3707
3761
  code?: T;
3708
3762
  title?: T;
@@ -3728,6 +3782,7 @@ interface DiscountsSelect<T extends boolean = true> {
3728
3782
  metadata?: T;
3729
3783
  updatedAt?: T;
3730
3784
  createdAt?: T;
3785
+ deletedAt?: T;
3731
3786
  }
3732
3787
  /**
3733
3788
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3747,6 +3802,7 @@ interface ShippingPoliciesSelect<T extends boolean = true> {
3747
3802
  metadata?: T;
3748
3803
  updatedAt?: T;
3749
3804
  createdAt?: T;
3805
+ deletedAt?: T;
3750
3806
  }
3751
3807
  /**
3752
3808
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3775,6 +3831,7 @@ interface PostsSelect<T extends boolean = true> {
3775
3831
  metadata?: T;
3776
3832
  updatedAt?: T;
3777
3833
  createdAt?: T;
3834
+ deletedAt?: T;
3778
3835
  _status?: T;
3779
3836
  }
3780
3837
  /**
@@ -3793,6 +3850,7 @@ interface PostAuthorsSelect<T extends boolean = true> {
3793
3850
  metadata?: T;
3794
3851
  updatedAt?: T;
3795
3852
  createdAt?: T;
3853
+ deletedAt?: T;
3796
3854
  }
3797
3855
  /**
3798
3856
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3810,6 +3868,7 @@ interface PostCategoriesSelect<T extends boolean = true> {
3810
3868
  color?: T;
3811
3869
  updatedAt?: T;
3812
3870
  createdAt?: T;
3871
+ deletedAt?: T;
3813
3872
  }
3814
3873
  /**
3815
3874
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3827,6 +3886,7 @@ interface PostTagsSelect<T extends boolean = true> {
3827
3886
  color?: T;
3828
3887
  updatedAt?: T;
3829
3888
  createdAt?: T;
3889
+ deletedAt?: T;
3830
3890
  }
3831
3891
  /**
3832
3892
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3914,6 +3974,7 @@ interface DocumentsSelect<T extends boolean = true> {
3914
3974
  metadata?: T;
3915
3975
  updatedAt?: T;
3916
3976
  createdAt?: T;
3977
+ deletedAt?: T;
3917
3978
  _status?: T;
3918
3979
  }
3919
3980
  /**
@@ -3932,6 +3993,7 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
3932
3993
  color?: T;
3933
3994
  updatedAt?: T;
3934
3995
  createdAt?: T;
3996
+ deletedAt?: T;
3935
3997
  }
3936
3998
  /**
3937
3999
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3948,6 +4010,7 @@ interface DocumentTypesSelect<T extends boolean = true> {
3948
4010
  color?: T;
3949
4011
  updatedAt?: T;
3950
4012
  createdAt?: T;
4013
+ deletedAt?: T;
3951
4014
  }
3952
4015
  /**
3953
4016
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4009,6 +4072,7 @@ interface DocumentImagesSelect<T extends boolean = true> {
4009
4072
  * via the `definition` "playlists_select".
4010
4073
  */
4011
4074
  interface PlaylistsSelect<T extends boolean = true> {
4075
+ _order?: T;
4012
4076
  tenant?: T;
4013
4077
  title?: T;
4014
4078
  description?: T;
@@ -4024,12 +4088,14 @@ interface PlaylistsSelect<T extends boolean = true> {
4024
4088
  metadata?: T;
4025
4089
  updatedAt?: T;
4026
4090
  createdAt?: T;
4091
+ deletedAt?: T;
4027
4092
  }
4028
4093
  /**
4029
4094
  * This interface was referenced by `Config`'s JSON-Schema
4030
4095
  * via the `definition` "musics_select".
4031
4096
  */
4032
4097
  interface MusicsSelect<T extends boolean = true> {
4098
+ _order?: T;
4033
4099
  _musics_musics_order?: T;
4034
4100
  tenant?: T;
4035
4101
  playlist?: T;
@@ -4041,6 +4107,7 @@ interface MusicsSelect<T extends boolean = true> {
4041
4107
  isValid?: T;
4042
4108
  updatedAt?: T;
4043
4109
  createdAt?: T;
4110
+ deletedAt?: T;
4044
4111
  }
4045
4112
  /**
4046
4113
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4102,6 +4169,7 @@ interface PlaylistImagesSelect<T extends boolean = true> {
4102
4169
  * via the `definition` "forms_select".
4103
4170
  */
4104
4171
  interface FormsSelect<T extends boolean = true> {
4172
+ _order?: T;
4105
4173
  tenant?: T;
4106
4174
  title?: T;
4107
4175
  description?: T;
@@ -4209,6 +4277,7 @@ interface FormsSelect<T extends boolean = true> {
4209
4277
  };
4210
4278
  updatedAt?: T;
4211
4279
  createdAt?: T;
4280
+ deletedAt?: T;
4212
4281
  }
4213
4282
  /**
4214
4283
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4224,6 +4293,7 @@ interface FormSubmissionsSelect<T extends boolean = true> {
4224
4293
  };
4225
4294
  updatedAt?: T;
4226
4295
  createdAt?: T;
4296
+ deletedAt?: T;
4227
4297
  }
4228
4298
  /**
4229
4299
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1,4 +1,4 @@
1
- import { c as Config } from './payload-types-BFIUYPDZ.cjs';
1
+ import { c as Config } from './payload-types-D0px2DCK.cjs';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -1,4 +1,4 @@
1
- import { c as Config } from './payload-types-BFIUYPDZ.js';
1
+ import { c as Config } from './payload-types-D0px2DCK.js';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -1,2 +1,2 @@
1
- export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-BM5spkSP.cjs';
2
- import './payload-types-BFIUYPDZ.cjs';
1
+ export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook--_n7O-Ed.cjs';
2
+ import './payload-types-D0px2DCK.cjs';
package/dist/webhook.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-BBp77Khg.js';
2
- import './payload-types-BFIUYPDZ.js';
1
+ export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-vrlAV1K7.js';
2
+ import './payload-types-D0px2DCK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],