@open-dpp/dto 0.4.3 → 0.5.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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/instance-settings/instance-settings.dto.d.ts +29 -0
- package/dist/instance-settings/instance-settings.dto.d.ts.map +1 -0
- package/dist/instance-settings/instance-settings.dto.js +21 -0
- package/dist/organizations/invitation.dto.d.ts +30 -0
- package/dist/organizations/invitation.dto.d.ts.map +1 -0
- package/dist/organizations/invitation.dto.js +26 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/instance-settings/instance-settings.dto.ts +30 -0
- package/src/organizations/invitation.dto.ts +30 -0
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from "./aas/common/key-json-schema";
|
|
|
6
6
|
export * from "./aas/common/language-text-json-schema";
|
|
7
7
|
export * from "./shared/get-all-params.dto";
|
|
8
8
|
export * from "./shared/filter.dto";
|
|
9
|
+
export * from "./organizations/invitation.dto";
|
|
10
|
+
export * from "./instance-settings/instance-settings.dto";
|
|
9
11
|
export * from "./aas/common/qualifier-json-schema";
|
|
10
12
|
export * from "./aas/common/reference-json-schema";
|
|
11
13
|
export * from "./aas/concept-description-json-schema";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC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C;AAClE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,8 @@ __exportStar(require("./aas/common/key-json-schema"), exports);
|
|
|
22
22
|
__exportStar(require("./aas/common/language-text-json-schema"), exports);
|
|
23
23
|
__exportStar(require("./shared/get-all-params.dto"), exports);
|
|
24
24
|
__exportStar(require("./shared/filter.dto"), exports);
|
|
25
|
+
__exportStar(require("./organizations/invitation.dto"), exports);
|
|
26
|
+
__exportStar(require("./instance-settings/instance-settings.dto"), exports);
|
|
25
27
|
__exportStar(require("./aas/common/qualifier-json-schema"), exports);
|
|
26
28
|
__exportStar(require("./aas/common/reference-json-schema"), exports);
|
|
27
29
|
__exportStar(require("./aas/concept-description-json-schema"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BooleanSettingsResponseDtoSchema: z.ZodObject<{
|
|
3
|
+
value: z.ZodBoolean;
|
|
4
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type BooleanSettingsResponseDto = z.infer<typeof BooleanSettingsResponseDtoSchema>;
|
|
7
|
+
export declare const InstanceSettingsDtoSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
signupEnabled: z.ZodObject<{
|
|
10
|
+
value: z.ZodBoolean;
|
|
11
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
organizationCreationEnabled: z.ZodObject<{
|
|
14
|
+
value: z.ZodBoolean;
|
|
15
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type InstanceSettingsDto = z.infer<typeof InstanceSettingsDtoSchema>;
|
|
19
|
+
export declare const InstanceSettingsUpdateDtoSchema: z.ZodObject<{
|
|
20
|
+
signupEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
organizationCreationEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type InstanceSettingsUpdateDto = z.infer<typeof InstanceSettingsUpdateDtoSchema>;
|
|
24
|
+
export declare const PublicInstanceSettingsDtoSchema: z.ZodObject<{
|
|
25
|
+
signupEnabled: z.ZodBoolean;
|
|
26
|
+
organizationCreationEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type PublicInstanceSettingsDto = z.infer<typeof PublicInstanceSettingsDtoSchema>;
|
|
29
|
+
//# sourceMappingURL=instance-settings.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-settings.dto.d.ts","sourceRoot":"","sources":["../../src/instance-settings/instance-settings.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;iBAG3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAIpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicInstanceSettingsDtoSchema = exports.InstanceSettingsUpdateDtoSchema = exports.InstanceSettingsDtoSchema = exports.BooleanSettingsResponseDtoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.BooleanSettingsResponseDtoSchema = zod_1.z.object({
|
|
6
|
+
value: zod_1.z.boolean(),
|
|
7
|
+
locked: zod_1.z.boolean().optional(),
|
|
8
|
+
});
|
|
9
|
+
exports.InstanceSettingsDtoSchema = zod_1.z.object({
|
|
10
|
+
id: zod_1.z.string(),
|
|
11
|
+
signupEnabled: exports.BooleanSettingsResponseDtoSchema,
|
|
12
|
+
organizationCreationEnabled: exports.BooleanSettingsResponseDtoSchema,
|
|
13
|
+
});
|
|
14
|
+
exports.InstanceSettingsUpdateDtoSchema = zod_1.z.object({
|
|
15
|
+
signupEnabled: zod_1.z.boolean().optional(),
|
|
16
|
+
organizationCreationEnabled: zod_1.z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
exports.PublicInstanceSettingsDtoSchema = zod_1.z.object({
|
|
19
|
+
signupEnabled: zod_1.z.boolean(),
|
|
20
|
+
organizationCreationEnabled: zod_1.z.boolean().optional(),
|
|
21
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const InvitationStatusDto: {
|
|
3
|
+
readonly PENDING: "pending";
|
|
4
|
+
readonly ACCEPTED: "accepted";
|
|
5
|
+
readonly DECLINED: "declined";
|
|
6
|
+
};
|
|
7
|
+
export declare const InvitationStatusDtoEnum: z.ZodEnum<{
|
|
8
|
+
readonly PENDING: "pending";
|
|
9
|
+
readonly ACCEPTED: "accepted";
|
|
10
|
+
readonly DECLINED: "declined";
|
|
11
|
+
}>;
|
|
12
|
+
export type InvitationStatusDtoType = z.infer<typeof InvitationStatusDtoEnum>;
|
|
13
|
+
export declare const InvitationResponseSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
expiresAt: z.ZodISODateTime;
|
|
16
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
status: z.ZodEnum<{
|
|
20
|
+
readonly PENDING: "pending";
|
|
21
|
+
readonly ACCEPTED: "accepted";
|
|
22
|
+
readonly DECLINED: "declined";
|
|
23
|
+
}>;
|
|
24
|
+
inviter: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
organizationId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type InvitationResponseDto = z.infer<typeof InvitationResponseSchema>;
|
|
30
|
+
//# sourceMappingURL=invitation.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invitation.dto.d.ts","sourceRoot":"","sources":["../../src/organizations/invitation.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;EAA8B,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;iBAenC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvitationResponseSchema = exports.InvitationStatusDtoEnum = exports.InvitationStatusDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.InvitationStatusDto = {
|
|
6
|
+
PENDING: "pending",
|
|
7
|
+
ACCEPTED: "accepted",
|
|
8
|
+
DECLINED: "declined",
|
|
9
|
+
};
|
|
10
|
+
exports.InvitationStatusDtoEnum = zod_1.z.enum(exports.InvitationStatusDto);
|
|
11
|
+
exports.InvitationResponseSchema = zod_1.z.object({
|
|
12
|
+
id: zod_1.z.string(),
|
|
13
|
+
expiresAt: zod_1.z.iso.datetime(),
|
|
14
|
+
organization: zod_1.z
|
|
15
|
+
.object({
|
|
16
|
+
name: zod_1.z.string(),
|
|
17
|
+
})
|
|
18
|
+
.optional(),
|
|
19
|
+
status: exports.InvitationStatusDtoEnum,
|
|
20
|
+
inviter: zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
name: zod_1.z.string(),
|
|
23
|
+
})
|
|
24
|
+
.optional(),
|
|
25
|
+
organizationId: zod_1.z.string(),
|
|
26
|
+
});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -8,6 +8,9 @@ export * from "./aas/common/language-text-json-schema";
|
|
|
8
8
|
export * from "./shared/get-all-params.dto";
|
|
9
9
|
export * from "./shared/filter.dto";
|
|
10
10
|
|
|
11
|
+
export * from "./organizations/invitation.dto";
|
|
12
|
+
|
|
13
|
+
export * from "./instance-settings/instance-settings.dto";
|
|
11
14
|
export * from "./aas/common/qualifier-json-schema";
|
|
12
15
|
export * from "./aas/common/reference-json-schema";
|
|
13
16
|
export * from "./aas/concept-description-json-schema";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const BooleanSettingsResponseDtoSchema = z.object({
|
|
4
|
+
value: z.boolean(),
|
|
5
|
+
locked: z.boolean().optional(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type BooleanSettingsResponseDto = z.infer<typeof BooleanSettingsResponseDtoSchema>;
|
|
9
|
+
|
|
10
|
+
export const InstanceSettingsDtoSchema = z.object({
|
|
11
|
+
id: z.string(),
|
|
12
|
+
signupEnabled: BooleanSettingsResponseDtoSchema,
|
|
13
|
+
organizationCreationEnabled: BooleanSettingsResponseDtoSchema,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export type InstanceSettingsDto = z.infer<typeof InstanceSettingsDtoSchema>;
|
|
17
|
+
|
|
18
|
+
export const InstanceSettingsUpdateDtoSchema = z.object({
|
|
19
|
+
signupEnabled: z.boolean().optional(),
|
|
20
|
+
organizationCreationEnabled: z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export type InstanceSettingsUpdateDto = z.infer<typeof InstanceSettingsUpdateDtoSchema>;
|
|
24
|
+
|
|
25
|
+
export const PublicInstanceSettingsDtoSchema = z.object({
|
|
26
|
+
signupEnabled: z.boolean(),
|
|
27
|
+
organizationCreationEnabled: z.boolean().optional(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type PublicInstanceSettingsDto = z.infer<typeof PublicInstanceSettingsDtoSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const InvitationStatusDto = {
|
|
4
|
+
PENDING: "pending",
|
|
5
|
+
ACCEPTED: "accepted",
|
|
6
|
+
DECLINED: "declined",
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
export const InvitationStatusDtoEnum = z.enum(InvitationStatusDto);
|
|
10
|
+
|
|
11
|
+
export type InvitationStatusDtoType = z.infer<typeof InvitationStatusDtoEnum>;
|
|
12
|
+
|
|
13
|
+
export const InvitationResponseSchema = z.object({
|
|
14
|
+
id: z.string(),
|
|
15
|
+
expiresAt: z.iso.datetime(),
|
|
16
|
+
organization: z
|
|
17
|
+
.object({
|
|
18
|
+
name: z.string(),
|
|
19
|
+
})
|
|
20
|
+
.optional(),
|
|
21
|
+
status: InvitationStatusDtoEnum,
|
|
22
|
+
inviter: z
|
|
23
|
+
.object({
|
|
24
|
+
name: z.string(),
|
|
25
|
+
})
|
|
26
|
+
.optional(),
|
|
27
|
+
organizationId: z.string(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type InvitationResponseDto = z.infer<typeof InvitationResponseSchema>;
|