@01.software/sdk 0.2.5 → 0.2.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.
@@ -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;
@@ -969,20 +970,6 @@ interface Product {
969
970
  hasNextPage?: boolean;
970
971
  totalDocs?: number;
971
972
  };
972
- meta?: {
973
- /**
974
- * 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
975
- */
976
- title?: string | null;
977
- /**
978
- * 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
979
- */
980
- description?: string | null;
981
- /**
982
- * SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
983
- */
984
- image?: (string | null) | Media;
985
- };
986
973
  /**
987
974
  * When enabled, the slug will auto-generate from the title field on save and autosave.
988
975
  */
@@ -1008,6 +995,7 @@ interface Product {
1008
995
  } | unknown[] | string | number | boolean | null;
1009
996
  updatedAt: string;
1010
997
  createdAt: string;
998
+ deletedAt?: string | null;
1011
999
  }
1012
1000
  /**
1013
1001
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1104,6 +1092,7 @@ interface ProductVariant {
1104
1092
  };
1105
1093
  updatedAt: string;
1106
1094
  createdAt: string;
1095
+ deletedAt?: string | null;
1107
1096
  }
1108
1097
  /**
1109
1098
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1136,6 +1125,7 @@ interface ProductOption {
1136
1125
  } | unknown[] | string | number | boolean | null;
1137
1126
  updatedAt: string;
1138
1127
  createdAt: string;
1128
+ deletedAt?: string | null;
1139
1129
  }
1140
1130
  /**
1141
1131
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1157,6 +1147,7 @@ interface ProductCategory {
1157
1147
  color?: string | null;
1158
1148
  updatedAt: string;
1159
1149
  createdAt: string;
1150
+ deletedAt?: string | null;
1160
1151
  }
1161
1152
  /**
1162
1153
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1178,6 +1169,7 @@ interface ProductTag {
1178
1169
  color?: string | null;
1179
1170
  updatedAt: string;
1180
1171
  createdAt: string;
1172
+ deletedAt?: string | null;
1181
1173
  }
1182
1174
  /**
1183
1175
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1218,6 +1210,7 @@ interface ProductCollection {
1218
1210
  } | unknown[] | string | number | boolean | null;
1219
1211
  updatedAt: string;
1220
1212
  createdAt: string;
1213
+ deletedAt?: string | null;
1221
1214
  }
1222
1215
  /**
1223
1216
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1245,7 +1238,21 @@ interface Brand {
1245
1238
  * Logo mark / Icon (optional)
1246
1239
  */
1247
1240
  logomark?: (string | null) | BrandLogo;
1248
- description?: string | null;
1241
+ description?: {
1242
+ root: {
1243
+ type: string;
1244
+ children: {
1245
+ type: any;
1246
+ version: number;
1247
+ [k: string]: unknown;
1248
+ }[];
1249
+ direction: ('ltr' | 'rtl') | null;
1250
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1251
+ indent: number;
1252
+ version: number;
1253
+ };
1254
+ [k: string]: unknown;
1255
+ } | null;
1249
1256
  /**
1250
1257
  * Brand official website URL
1251
1258
  */
@@ -1255,6 +1262,7 @@ interface Brand {
1255
1262
  } | unknown[] | string | number | boolean | null;
1256
1263
  updatedAt: string;
1257
1264
  createdAt: string;
1265
+ deletedAt?: string | null;
1258
1266
  }
1259
1267
  /**
1260
1268
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1295,6 +1303,7 @@ interface ShippingPolicy {
1295
1303
  } | unknown[] | string | number | boolean | null;
1296
1304
  updatedAt: string;
1297
1305
  createdAt: string;
1306
+ deletedAt?: string | null;
1298
1307
  }
1299
1308
  /**
1300
1309
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1366,6 +1375,8 @@ interface Order {
1366
1375
  */
1367
1376
  interface Customer {
1368
1377
  id: string;
1378
+ _customers_customers_order?: string | null;
1379
+ _order?: string | null;
1369
1380
  tenant?: (string | null) | Tenant;
1370
1381
  name: string;
1371
1382
  email?: string | null;
@@ -1441,6 +1452,7 @@ interface CustomerGroup {
1441
1452
  };
1442
1453
  updatedAt: string;
1443
1454
  createdAt: string;
1455
+ deletedAt?: string | null;
1444
1456
  }
1445
1457
  /**
1446
1458
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1753,6 +1765,7 @@ interface CartItem {
1753
1765
  */
1754
1766
  interface Discount {
1755
1767
  id: string;
1768
+ _order?: string | null;
1756
1769
  tenant?: (string | null) | Tenant;
1757
1770
  /**
1758
1771
  * Unique discount code
@@ -1819,6 +1832,7 @@ interface Discount {
1819
1832
  } | unknown[] | string | number | boolean | null;
1820
1833
  updatedAt: string;
1821
1834
  createdAt: string;
1835
+ deletedAt?: string | null;
1822
1836
  }
1823
1837
  /**
1824
1838
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1849,20 +1863,6 @@ interface Post {
1849
1863
  };
1850
1864
  [k: string]: unknown;
1851
1865
  } | null;
1852
- meta?: {
1853
- /**
1854
- * 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
1855
- */
1856
- title?: string | null;
1857
- /**
1858
- * 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
1859
- */
1860
- description?: string | null;
1861
- /**
1862
- * SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
1863
- */
1864
- image?: (string | null) | Media;
1865
- };
1866
1866
  thumbnail?: (string | null) | PostImage;
1867
1867
  images?: (string | PostImage)[] | null;
1868
1868
  /**
@@ -1879,6 +1879,7 @@ interface Post {
1879
1879
  } | unknown[] | string | number | boolean | null;
1880
1880
  updatedAt: string;
1881
1881
  createdAt: string;
1882
+ deletedAt?: string | null;
1882
1883
  _status?: ('draft' | 'published') | null;
1883
1884
  }
1884
1885
  /**
@@ -1963,6 +1964,7 @@ interface PostAuthor {
1963
1964
  } | unknown[] | string | number | boolean | null;
1964
1965
  updatedAt: string;
1965
1966
  createdAt: string;
1967
+ deletedAt?: string | null;
1966
1968
  }
1967
1969
  /**
1968
1970
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1984,6 +1986,7 @@ interface PostCategory {
1984
1986
  color?: string | null;
1985
1987
  updatedAt: string;
1986
1988
  createdAt: string;
1989
+ deletedAt?: string | null;
1987
1990
  }
1988
1991
  /**
1989
1992
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2005,6 +2008,7 @@ interface PostTag {
2005
2008
  color?: string | null;
2006
2009
  updatedAt: string;
2007
2010
  createdAt: string;
2011
+ deletedAt?: string | null;
2008
2012
  }
2009
2013
  /**
2010
2014
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2042,20 +2046,6 @@ interface Document {
2042
2046
  * Changelog (differences from previous version)
2043
2047
  */
2044
2048
  changeLog?: string | null;
2045
- meta?: {
2046
- /**
2047
- * 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
2048
- */
2049
- title?: string | null;
2050
- /**
2051
- * 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
2052
- */
2053
- description?: string | null;
2054
- /**
2055
- * SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
2056
- */
2057
- image?: (string | null) | Media;
2058
- };
2059
2049
  /**
2060
2050
  * When enabled, the slug will auto-generate from the title field on save and autosave.
2061
2051
  */
@@ -2084,6 +2074,7 @@ interface Document {
2084
2074
  } | unknown[] | string | number | boolean | null;
2085
2075
  updatedAt: string;
2086
2076
  createdAt: string;
2077
+ deletedAt?: string | null;
2087
2078
  _status?: ('draft' | 'published') | null;
2088
2079
  }
2089
2080
  /**
@@ -2105,6 +2096,7 @@ interface DocumentType {
2105
2096
  color?: string | null;
2106
2097
  updatedAt: string;
2107
2098
  createdAt: string;
2099
+ deletedAt?: string | null;
2108
2100
  }
2109
2101
  /**
2110
2102
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2182,6 +2174,7 @@ interface DocumentCategory {
2182
2174
  color?: string | null;
2183
2175
  updatedAt: string;
2184
2176
  createdAt: string;
2177
+ deletedAt?: string | null;
2185
2178
  }
2186
2179
  /**
2187
2180
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2189,6 +2182,7 @@ interface DocumentCategory {
2189
2182
  */
2190
2183
  interface Playlist {
2191
2184
  id: string;
2185
+ _order?: string | null;
2192
2186
  tenant?: (string | null) | Tenant;
2193
2187
  title: string;
2194
2188
  description?: string | null;
@@ -2197,20 +2191,6 @@ interface Playlist {
2197
2191
  hasNextPage?: boolean;
2198
2192
  totalDocs?: number;
2199
2193
  };
2200
- meta?: {
2201
- /**
2202
- * 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
2203
- */
2204
- title?: string | null;
2205
- /**
2206
- * 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
2207
- */
2208
- description?: string | null;
2209
- /**
2210
- * SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
2211
- */
2212
- image?: (string | null) | Media;
2213
- };
2214
2194
  image?: (string | null) | PlaylistImage;
2215
2195
  /**
2216
2196
  * When enabled, the slug will auto-generate from the title field on save and autosave.
@@ -2222,6 +2202,7 @@ interface Playlist {
2222
2202
  } | unknown[] | string | number | boolean | null;
2223
2203
  updatedAt: string;
2224
2204
  createdAt: string;
2205
+ deletedAt?: string | null;
2225
2206
  }
2226
2207
  /**
2227
2208
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2229,6 +2210,7 @@ interface Playlist {
2229
2210
  */
2230
2211
  interface Music {
2231
2212
  id: string;
2213
+ _order?: string | null;
2232
2214
  _musics_musics_order?: string | null;
2233
2215
  tenant?: (string | null) | Tenant;
2234
2216
  playlist: string | Playlist;
@@ -2251,6 +2233,7 @@ interface Music {
2251
2233
  isValid?: boolean | null;
2252
2234
  updatedAt: string;
2253
2235
  createdAt: string;
2236
+ deletedAt?: string | null;
2254
2237
  }
2255
2238
  /**
2256
2239
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2314,6 +2297,7 @@ interface PlaylistImage {
2314
2297
  */
2315
2298
  interface Form {
2316
2299
  id: string;
2300
+ _order?: string | null;
2317
2301
  tenant?: (string | null) | Tenant;
2318
2302
  title: string;
2319
2303
  description?: string | null;
@@ -2474,6 +2458,7 @@ interface Form {
2474
2458
  }[] | null;
2475
2459
  updatedAt: string;
2476
2460
  createdAt: string;
2461
+ deletedAt?: string | null;
2477
2462
  }
2478
2463
  /**
2479
2464
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2490,6 +2475,7 @@ interface FormSubmission {
2490
2475
  }[] | null;
2491
2476
  updatedAt: string;
2492
2477
  createdAt: string;
2478
+ deletedAt?: string | null;
2493
2479
  }
2494
2480
  /**
2495
2481
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2762,6 +2748,7 @@ interface MediaSelect<T extends boolean = true> {
2762
2748
  * via the `definition` "audiences_select".
2763
2749
  */
2764
2750
  interface AudiencesSelect<T extends boolean = true> {
2751
+ _order?: T;
2765
2752
  email?: T;
2766
2753
  firstName?: T;
2767
2754
  lastName?: T;
@@ -3096,11 +3083,6 @@ interface ProductsSelect<T extends boolean = true> {
3096
3083
  compareAtPrice?: T;
3097
3084
  variants?: T;
3098
3085
  options?: T;
3099
- meta?: T | {
3100
- title?: T;
3101
- description?: T;
3102
- image?: T;
3103
- };
3104
3086
  generateSlug?: T;
3105
3087
  slug?: T;
3106
3088
  sku?: T;
@@ -3114,6 +3096,7 @@ interface ProductsSelect<T extends boolean = true> {
3114
3096
  metadata?: T;
3115
3097
  updatedAt?: T;
3116
3098
  createdAt?: T;
3099
+ deletedAt?: T;
3117
3100
  }
3118
3101
  /**
3119
3102
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3135,6 +3118,7 @@ interface ProductVariantsSelect<T extends boolean = true> {
3135
3118
  productOptions?: T;
3136
3119
  updatedAt?: T;
3137
3120
  createdAt?: T;
3121
+ deletedAt?: T;
3138
3122
  }
3139
3123
  /**
3140
3124
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3155,6 +3139,7 @@ interface ProductOptionsSelect<T extends boolean = true> {
3155
3139
  metadata?: T;
3156
3140
  updatedAt?: T;
3157
3141
  createdAt?: T;
3142
+ deletedAt?: T;
3158
3143
  }
3159
3144
  /**
3160
3145
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3172,6 +3157,7 @@ interface ProductCategoriesSelect<T extends boolean = true> {
3172
3157
  color?: T;
3173
3158
  updatedAt?: T;
3174
3159
  createdAt?: T;
3160
+ deletedAt?: T;
3175
3161
  }
3176
3162
  /**
3177
3163
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3189,6 +3175,7 @@ interface ProductTagsSelect<T extends boolean = true> {
3189
3175
  color?: T;
3190
3176
  updatedAt?: T;
3191
3177
  createdAt?: T;
3178
+ deletedAt?: T;
3192
3179
  }
3193
3180
  /**
3194
3181
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3209,6 +3196,7 @@ interface ProductCollectionsSelect<T extends boolean = true> {
3209
3196
  metadata?: T;
3210
3197
  updatedAt?: T;
3211
3198
  createdAt?: T;
3199
+ deletedAt?: T;
3212
3200
  }
3213
3201
  /**
3214
3202
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3228,6 +3216,7 @@ interface BrandsSelect<T extends boolean = true> {
3228
3216
  metadata?: T;
3229
3217
  updatedAt?: T;
3230
3218
  createdAt?: T;
3219
+ deletedAt?: T;
3231
3220
  }
3232
3221
  /**
3233
3222
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3539,6 +3528,8 @@ interface TransactionsSelect<T extends boolean = true> {
3539
3528
  * via the `definition` "customers_select".
3540
3529
  */
3541
3530
  interface CustomersSelect<T extends boolean = true> {
3531
+ _customers_customers_order?: T;
3532
+ _order?: T;
3542
3533
  tenant?: T;
3543
3534
  name?: T;
3544
3535
  email?: T;
@@ -3599,6 +3590,7 @@ interface CustomerGroupsSelect<T extends boolean = true> {
3599
3590
  customers?: T;
3600
3591
  updatedAt?: T;
3601
3592
  createdAt?: T;
3593
+ deletedAt?: T;
3602
3594
  }
3603
3595
  /**
3604
3596
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3703,6 +3695,7 @@ interface CartItemsSelect<T extends boolean = true> {
3703
3695
  * via the `definition` "discounts_select".
3704
3696
  */
3705
3697
  interface DiscountsSelect<T extends boolean = true> {
3698
+ _order?: T;
3706
3699
  tenant?: T;
3707
3700
  code?: T;
3708
3701
  title?: T;
@@ -3728,6 +3721,7 @@ interface DiscountsSelect<T extends boolean = true> {
3728
3721
  metadata?: T;
3729
3722
  updatedAt?: T;
3730
3723
  createdAt?: T;
3724
+ deletedAt?: T;
3731
3725
  }
3732
3726
  /**
3733
3727
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3747,6 +3741,7 @@ interface ShippingPoliciesSelect<T extends boolean = true> {
3747
3741
  metadata?: T;
3748
3742
  updatedAt?: T;
3749
3743
  createdAt?: T;
3744
+ deletedAt?: T;
3750
3745
  }
3751
3746
  /**
3752
3747
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3759,11 +3754,6 @@ interface PostsSelect<T extends boolean = true> {
3759
3754
  subtitle?: T;
3760
3755
  excerpt?: T;
3761
3756
  content?: T;
3762
- meta?: T | {
3763
- title?: T;
3764
- description?: T;
3765
- image?: T;
3766
- };
3767
3757
  thumbnail?: T;
3768
3758
  images?: T;
3769
3759
  generateSlug?: T;
@@ -3775,6 +3765,7 @@ interface PostsSelect<T extends boolean = true> {
3775
3765
  metadata?: T;
3776
3766
  updatedAt?: T;
3777
3767
  createdAt?: T;
3768
+ deletedAt?: T;
3778
3769
  _status?: T;
3779
3770
  }
3780
3771
  /**
@@ -3793,6 +3784,7 @@ interface PostAuthorsSelect<T extends boolean = true> {
3793
3784
  metadata?: T;
3794
3785
  updatedAt?: T;
3795
3786
  createdAt?: T;
3787
+ deletedAt?: T;
3796
3788
  }
3797
3789
  /**
3798
3790
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3810,6 +3802,7 @@ interface PostCategoriesSelect<T extends boolean = true> {
3810
3802
  color?: T;
3811
3803
  updatedAt?: T;
3812
3804
  createdAt?: T;
3805
+ deletedAt?: T;
3813
3806
  }
3814
3807
  /**
3815
3808
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3827,6 +3820,7 @@ interface PostTagsSelect<T extends boolean = true> {
3827
3820
  color?: T;
3828
3821
  updatedAt?: T;
3829
3822
  createdAt?: T;
3823
+ deletedAt?: T;
3830
3824
  }
3831
3825
  /**
3832
3826
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3898,11 +3892,6 @@ interface DocumentsSelect<T extends boolean = true> {
3898
3892
  id?: T;
3899
3893
  };
3900
3894
  changeLog?: T;
3901
- meta?: T | {
3902
- title?: T;
3903
- description?: T;
3904
- image?: T;
3905
- };
3906
3895
  generateSlug?: T;
3907
3896
  slug?: T;
3908
3897
  type?: T;
@@ -3914,6 +3903,7 @@ interface DocumentsSelect<T extends boolean = true> {
3914
3903
  metadata?: T;
3915
3904
  updatedAt?: T;
3916
3905
  createdAt?: T;
3906
+ deletedAt?: T;
3917
3907
  _status?: T;
3918
3908
  }
3919
3909
  /**
@@ -3932,6 +3922,7 @@ interface DocumentCategoriesSelect<T extends boolean = true> {
3932
3922
  color?: T;
3933
3923
  updatedAt?: T;
3934
3924
  createdAt?: T;
3925
+ deletedAt?: T;
3935
3926
  }
3936
3927
  /**
3937
3928
  * This interface was referenced by `Config`'s JSON-Schema
@@ -3948,6 +3939,7 @@ interface DocumentTypesSelect<T extends boolean = true> {
3948
3939
  color?: T;
3949
3940
  updatedAt?: T;
3950
3941
  createdAt?: T;
3942
+ deletedAt?: T;
3951
3943
  }
3952
3944
  /**
3953
3945
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4009,27 +4001,25 @@ interface DocumentImagesSelect<T extends boolean = true> {
4009
4001
  * via the `definition` "playlists_select".
4010
4002
  */
4011
4003
  interface PlaylistsSelect<T extends boolean = true> {
4004
+ _order?: T;
4012
4005
  tenant?: T;
4013
4006
  title?: T;
4014
4007
  description?: T;
4015
4008
  musics?: T;
4016
- meta?: T | {
4017
- title?: T;
4018
- description?: T;
4019
- image?: T;
4020
- };
4021
4009
  image?: T;
4022
4010
  generateSlug?: T;
4023
4011
  slug?: T;
4024
4012
  metadata?: T;
4025
4013
  updatedAt?: T;
4026
4014
  createdAt?: T;
4015
+ deletedAt?: T;
4027
4016
  }
4028
4017
  /**
4029
4018
  * This interface was referenced by `Config`'s JSON-Schema
4030
4019
  * via the `definition` "musics_select".
4031
4020
  */
4032
4021
  interface MusicsSelect<T extends boolean = true> {
4022
+ _order?: T;
4033
4023
  _musics_musics_order?: T;
4034
4024
  tenant?: T;
4035
4025
  playlist?: T;
@@ -4041,6 +4031,7 @@ interface MusicsSelect<T extends boolean = true> {
4041
4031
  isValid?: T;
4042
4032
  updatedAt?: T;
4043
4033
  createdAt?: T;
4034
+ deletedAt?: T;
4044
4035
  }
4045
4036
  /**
4046
4037
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4102,6 +4093,7 @@ interface PlaylistImagesSelect<T extends boolean = true> {
4102
4093
  * via the `definition` "forms_select".
4103
4094
  */
4104
4095
  interface FormsSelect<T extends boolean = true> {
4096
+ _order?: T;
4105
4097
  tenant?: T;
4106
4098
  title?: T;
4107
4099
  description?: T;
@@ -4209,6 +4201,7 @@ interface FormsSelect<T extends boolean = true> {
4209
4201
  };
4210
4202
  updatedAt?: T;
4211
4203
  createdAt?: T;
4204
+ deletedAt?: T;
4212
4205
  }
4213
4206
  /**
4214
4207
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4224,6 +4217,7 @@ interface FormSubmissionsSelect<T extends boolean = true> {
4224
4217
  };
4225
4218
  updatedAt?: T;
4226
4219
  createdAt?: T;
4220
+ deletedAt?: T;
4227
4221
  }
4228
4222
  /**
4229
4223
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1,4 +1,4 @@
1
- import { c as Config } from './payload-types-BFIUYPDZ.js';
1
+ import { c as Config } from './payload-types-CRSz8jfP.js';
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.cjs';
1
+ import { c as Config } from './payload-types-CRSz8jfP.cjs';
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-Dn5o0LXq.cjs';
2
+ import './payload-types-CRSz8jfP.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-C_DHB0Sw.js';
2
+ import './payload-types-CRSz8jfP.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],
@@ -49,16 +49,6 @@
49
49
  "default": "./dist/components.cjs"
50
50
  }
51
51
  },
52
- "./metadata": {
53
- "import": {
54
- "types": "./dist/metadata.d.ts",
55
- "default": "./dist/metadata.js"
56
- },
57
- "require": {
58
- "types": "./dist/metadata.d.cts",
59
- "default": "./dist/metadata.cjs"
60
- }
61
- },
62
52
  "./package.json": "./package.json"
63
53
  },
64
54
  "sideEffects": false,
package/dist/metadata.cjs DELETED
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
-
34
- // src/metadata.ts
35
- var metadata_exports = {};
36
- __export(metadata_exports, {
37
- generateMetadata: () => generateMetadata
38
- });
39
- module.exports = __toCommonJS(metadata_exports);
40
-
41
- // src/utils/types.ts
42
- var resolveRelation = (ref) => {
43
- if (typeof ref === "string" || typeof ref === "number" || ref === null || ref === void 0)
44
- return null;
45
- return ref;
46
- };
47
-
48
- // src/core/metadata/index.ts
49
- function generateMetadata(doc, options) {
50
- var _a, _b, _c, _d;
51
- const meta = doc == null ? void 0 : doc.meta;
52
- const title = (_b = (_a = meta == null ? void 0 : meta.title) != null ? _a : options == null ? void 0 : options.title) != null ? _b : void 0;
53
- const description = (_d = (_c = meta == null ? void 0 : meta.description) != null ? _c : options == null ? void 0 : options.description) != null ? _d : void 0;
54
- const image = resolveMetaImage(meta == null ? void 0 : meta.image);
55
- return {
56
- title,
57
- description,
58
- openGraph: __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, title && { title }), description && { description }), (options == null ? void 0 : options.siteName) && { siteName: options.siteName }), image && { images: [image] }),
59
- twitter: __spreadValues(__spreadValues(__spreadValues({
60
- card: image ? "summary_large_image" : "summary"
61
- }, title && { title }), description && { description }), image && { images: [image.url] })
62
- };
63
- }
64
- function resolveMetaImage(ref) {
65
- const media = resolveRelation(ref);
66
- if (!(media == null ? void 0 : media.url)) return null;
67
- return __spreadValues(__spreadValues(__spreadValues({
68
- url: media.url
69
- }, media.width && { width: media.width }), media.height && { height: media.height }), media.alt && { alt: media.alt });
70
- }
71
- //# sourceMappingURL=metadata.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/metadata.ts","../src/utils/types.ts","../src/core/metadata/index.ts"],"sourcesContent":["export { generateMetadata } from './core/metadata'\nexport type { GenerateMetadataOptions } from './core/metadata'\n","/**\n * Resolves a Payload CMS relation field value.\n * When depth is 0, relation fields return just the ID (string or number).\n * When depth > 0, they return the full document object (T).\n * This utility normalizes both cases to T | null.\n *\n * @param ref - The relation field value (T, string, number, null, or undefined)\n * @returns The resolved document object, or null if not populated\n */\nexport const resolveRelation = <T>(ref: T | string | number | null | undefined): T | null => {\n if (typeof ref === 'string' || typeof ref === 'number' || ref === null || ref === undefined)\n return null\n return ref\n}\n\n/** @deprecated Use `resolveRelation` instead */\nexport const objectFor = resolveRelation\n","import type { Metadata } from 'next'\nimport type { Media } from '../../payload-types'\nimport { resolveRelation } from '../../utils/types'\n\ninterface MetaField {\n title?: string | null\n description?: string | null\n image?: (number | null) | Media\n}\n\nexport interface GenerateMetadataOptions {\n title?: string\n description?: string\n siteName?: string\n}\n\nexport function generateMetadata(\n doc: { meta?: MetaField | null },\n options?: GenerateMetadataOptions,\n): Metadata {\n const meta = doc?.meta\n const title = meta?.title ?? options?.title ?? undefined\n const description = meta?.description ?? options?.description ?? undefined\n const image = resolveMetaImage(meta?.image)\n\n return {\n title,\n description,\n openGraph: {\n ...(title && { title }),\n ...(description && { description }),\n ...(options?.siteName && { siteName: options.siteName }),\n ...(image && { images: [image] }),\n },\n twitter: {\n card: image ? 'summary_large_image' : 'summary',\n ...(title && { title }),\n ...(description && { description }),\n ...(image && { images: [image.url] }),\n },\n }\n}\n\nfunction resolveMetaImage(\n ref: (number | null) | Media | undefined,\n): { url: string; width?: number; height?: number; alt?: string } | null {\n const media = resolveRelation<Media>(ref)\n if (!media?.url) return null\n return {\n url: media.url,\n ...(media.width && { width: media.width }),\n ...(media.height && { height: media.height }),\n ...(media.alt && { alt: media.alt }),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAM,kBAAkB,CAAI,QAA0D;AAC3F,MAAI,OAAO,QAAQ,YAAY,OAAO,QAAQ,YAAY,QAAQ,QAAQ,QAAQ;AAChF,WAAO;AACT,SAAO;AACT;;;ACGO,SAAS,iBACd,KACA,SACU;AAnBZ;AAoBE,QAAM,OAAO,2BAAK;AAClB,QAAM,SAAQ,wCAAM,UAAN,YAAe,mCAAS,UAAxB,YAAiC;AAC/C,QAAM,eAAc,wCAAM,gBAAN,YAAqB,mCAAS,gBAA9B,YAA6C;AACjE,QAAM,QAAQ,iBAAiB,6BAAM,KAAK;AAE1C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,WAAW,gEACL,SAAS,EAAE,MAAM,IACjB,eAAe,EAAE,YAAY,KAC7B,mCAAS,aAAY,EAAE,UAAU,QAAQ,SAAS,IAClD,SAAS,EAAE,QAAQ,CAAC,KAAK,EAAE;AAAA,IAEjC,SAAS;AAAA,MACP,MAAM,QAAQ,wBAAwB;AAAA,OAClC,SAAS,EAAE,MAAM,IACjB,eAAe,EAAE,YAAY,IAC7B,SAAS,EAAE,QAAQ,CAAC,MAAM,GAAG,EAAE;AAAA,EAEvC;AACF;AAEA,SAAS,iBACP,KACuE;AACvE,QAAM,QAAQ,gBAAuB,GAAG;AACxC,MAAI,EAAC,+BAAO,KAAK,QAAO;AACxB,SAAO;AAAA,IACL,KAAK,MAAM;AAAA,KACP,MAAM,SAAS,EAAE,OAAO,MAAM,MAAM,IACpC,MAAM,UAAU,EAAE,QAAQ,MAAM,OAAO,IACvC,MAAM,OAAO,EAAE,KAAK,MAAM,IAAI;AAEtC;","names":[]}