@tailor-platform/sdk 1.9.2 → 1.10.0
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/CHANGELOG.md +28 -0
- package/dist/application-COnpGp0d.mjs +4 -0
- package/dist/{application-_ArEfxmV.mjs → application-R26DC-sK.mjs} +11 -2
- package/dist/{application-_ArEfxmV.mjs.map → application-R26DC-sK.mjs.map} +1 -1
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/lib.d.mts +16994 -6
- package/dist/cli/lib.mjs +153 -4
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-x4xcWJm1.d.mts → index-DcOTucF6.d.mts} +10 -7
- package/dist/{index-B07hXFjo.d.mts → index-DnoS_Mi4.d.mts} +3 -2
- package/dist/{update-DZs1loy_.mjs → update-C877GWkA.mjs} +331 -164
- package/dist/update-C877GWkA.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/package.json +1 -1
- package/dist/application-BdZ8qL7I.mjs +0 -4
- package/dist/update-DZs1loy_.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#554](https://github.com/tailor-platform/sdk/pull/554) [`4e9f975`](https://github.com/tailor-platform/sdk/commit/4e9f975944981d2fce6f5a9b6c0785a2567cf44c) Thanks [@toiroakr](https://github.com/toiroakr)! - feat(seed): use testExecScript API with Kysely batch insert for seeding
|
|
8
|
+
|
|
9
|
+
- Replace gql-ingest with Kysely batch insert for TailorDB seeding (100 rows/batch)
|
|
10
|
+
- Use direct fetch() for \_User seeding instead of gql-ingest
|
|
11
|
+
- Add topological sort for type insertion order
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#565](https://github.com/tailor-platform/sdk/pull/565) [`533227b`](https://github.com/tailor-platform/sdk/commit/533227b71a079f8d1b1b471980fa369dca2829fb) Thanks [@k1LoW](https://github.com/k1LoW)! - feat: support allowedEmailDomains field for IdP userAuthPolicy
|
|
16
|
+
|
|
17
|
+
- [#562](https://github.com/tailor-platform/sdk/pull/562) [`ce1eed0`](https://github.com/tailor-platform/sdk/commit/ce1eed0348f93d86e0bf7210be60223bae223955) Thanks [@toiroakr](https://github.com/toiroakr)! - fix(cli): use separate case statements for retry error codes
|
|
18
|
+
|
|
19
|
+
The `isRetirable` function was using bitwise OR in a switch case, which only matches the bitwise OR result rather than either code individually. This fix ensures retries work correctly for both `ResourceExhausted` and `Unavailable` error codes.
|
|
20
|
+
|
|
21
|
+
- [#547](https://github.com/tailor-platform/sdk/pull/547) [`5891c27`](https://github.com/tailor-platform/sdk/commit/5891c2774db182d1be1ea648b96b84dce1be5e34) Thanks [@riku99](https://github.com/riku99)! - Add tests for loadAccessToken
|
|
22
|
+
|
|
23
|
+
## 1.9.3
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#550](https://github.com/tailor-platform/sdk/pull/550) [`6c532f5`](https://github.com/tailor-platform/sdk/commit/6c532f58a5113b8e944eb3d6f4f8d1627f937d1e) Thanks [@toiroakr](https://github.com/toiroakr)! - Add validation error when `.unique()` is combined with `n-1` (manyToOne) relation. Use `1-1` (oneToOne) relation instead for unique foreign keys.
|
|
28
|
+
|
|
29
|
+
- [#551](https://github.com/tailor-platform/sdk/pull/551) [`67b9ce0`](https://github.com/tailor-platform/sdk/commit/67b9ce038315252c44622b2ddcfadac890d2d6f1) Thanks [@riku99](https://github.com/riku99)! - Use changeset publish for git tag and GitHub release creation
|
|
30
|
+
|
|
3
31
|
## 1.9.2
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -97384,6 +97384,11 @@ function parseTailorDBType(type, allTypeNames, rawTypes) {
|
|
|
97384
97384
|
};
|
|
97385
97385
|
if (rawRelation) {
|
|
97386
97386
|
validateRelationConfig(rawRelation, context);
|
|
97387
|
+
if ([
|
|
97388
|
+
"n-1",
|
|
97389
|
+
"manyToOne",
|
|
97390
|
+
"N-1"
|
|
97391
|
+
].includes(rawRelation.type) && fieldConfig.unique) throw new Error(`Field "${fieldName}" on type "${type.name}": cannot set unique on n-1 (manyToOne) relation. Use 1-1 (oneToOne) relation instead, or remove the unique constraint.`);
|
|
97387
97392
|
const relationMetadata = processRelationMetadata(rawRelation, context, fieldConfig.array);
|
|
97388
97393
|
fieldConfig = applyRelationMetadataToFieldConfig(fieldConfig, relationMetadata);
|
|
97389
97394
|
}
|
|
@@ -98185,10 +98190,14 @@ const IdPUserAuthPolicySchema = z.object({
|
|
|
98185
98190
|
passwordRequireNonAlphanumeric: z.boolean().optional(),
|
|
98186
98191
|
passwordRequireNumeric: z.boolean().optional(),
|
|
98187
98192
|
passwordMinLength: z.number().int().refine((val) => val >= 6 && val <= 30, { message: "passwordMinLength must be between 6 and 30" }).optional(),
|
|
98188
|
-
passwordMaxLength: z.number().int().refine((val) => val >= 6 && val <= 4096, { message: "passwordMaxLength must be between 6 and 4096" }).optional()
|
|
98193
|
+
passwordMaxLength: z.number().int().refine((val) => val >= 6 && val <= 4096, { message: "passwordMaxLength must be between 6 and 4096" }).optional(),
|
|
98194
|
+
allowedEmailDomains: z.array(z.string()).optional()
|
|
98189
98195
|
}).refine((data$1) => data$1.passwordMinLength === void 0 || data$1.passwordMaxLength === void 0 || data$1.passwordMinLength <= data$1.passwordMaxLength, {
|
|
98190
98196
|
message: "passwordMinLength must be less than or equal to passwordMaxLength",
|
|
98191
98197
|
path: ["passwordMinLength"]
|
|
98198
|
+
}).refine((data$1) => !data$1.allowedEmailDomains || data$1.allowedEmailDomains.length === 0 || !data$1.useNonEmailIdentifier, {
|
|
98199
|
+
message: "allowedEmailDomains cannot be set when useNonEmailIdentifier is true",
|
|
98200
|
+
path: ["allowedEmailDomains"]
|
|
98192
98201
|
});
|
|
98193
98202
|
const IdPSchema = z.object({
|
|
98194
98203
|
name: z.string(),
|
|
@@ -98375,4 +98384,4 @@ function defineApplication(config) {
|
|
|
98375
98384
|
|
|
98376
98385
|
//#endregion
|
|
98377
98386
|
export { OAuth2ClientSchema as a, tailorUserMap as c, styles as d, symbols as f, ExecutorSchema as i, loadFilesWithIgnores as l, WorkflowJobSchema as n, ResolverSchema as o, WorkflowSchema as r, stringifyFunction as s, defineApplication as t, logger as u };
|
|
98378
|
-
//# sourceMappingURL=application-
|
|
98387
|
+
//# sourceMappingURL=application-R26DC-sK.mjs.map
|