@open-dpp/dto 7.0.0 → 7.1.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.
@@ -32,10 +32,22 @@ export declare const InstanceSettingsUpdateDtoSchema: z.ZodObject<{
32
32
  permalinkBaseUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  }, z.core.$strip>;
34
34
  export type InstanceSettingsUpdateDto = z.infer<typeof InstanceSettingsUpdateDtoSchema>;
35
+ /** Operator-configured legal documents; a link is absent when its URL is not configured. */
36
+ export declare const LegalLinksDtoSchema: z.ZodObject<{
37
+ privacyPolicyUrl: z.ZodOptional<z.ZodString>;
38
+ termsOfServiceUrl: z.ZodOptional<z.ZodString>;
39
+ imprintUrl: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>;
41
+ export type LegalLinksDto = z.infer<typeof LegalLinksDtoSchema>;
35
42
  export declare const PublicInstanceSettingsDtoSchema: z.ZodObject<{
36
43
  signupEnabled: z.ZodBoolean;
37
44
  organizationCreationEnabled: z.ZodOptional<z.ZodBoolean>;
38
45
  usageManagementUrl: z.ZodOptional<z.ZodString>;
46
+ legalLinks: z.ZodObject<{
47
+ privacyPolicyUrl: z.ZodOptional<z.ZodString>;
48
+ termsOfServiceUrl: z.ZodOptional<z.ZodString>;
49
+ imprintUrl: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strip>;
39
51
  }, z.core.$strip>;
40
52
  export type PublicInstanceSettingsDto = z.infer<typeof PublicInstanceSettingsDtoSchema>;
41
53
  //# sourceMappingURL=instance-settings.dto.d.ts.map
@@ -1 +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;AAGxB,eAAO,MAAM,gCAAgC;;;iBAG3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC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ExF,4FAA4F;AAC5F,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,+BAA+B;;;;;;;;;iBAK1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublicInstanceSettingsDtoSchema = exports.InstanceSettingsUpdateDtoSchema = exports.InstanceSettingsDtoSchema = exports.StringSettingsResponseDtoSchema = exports.BooleanSettingsResponseDtoSchema = void 0;
3
+ exports.PublicInstanceSettingsDtoSchema = exports.LegalLinksDtoSchema = exports.InstanceSettingsUpdateDtoSchema = exports.InstanceSettingsDtoSchema = exports.StringSettingsResponseDtoSchema = exports.BooleanSettingsResponseDtoSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const permalink_base_url_schema_1 = require("../shared/permalink-base-url.schema");
6
6
  exports.BooleanSettingsResponseDtoSchema = zod_1.z.object({
@@ -23,8 +23,15 @@ exports.InstanceSettingsUpdateDtoSchema = zod_1.z.object({
23
23
  organizationCreationEnabled: zod_1.z.boolean().optional(),
24
24
  permalinkBaseUrl: permalink_base_url_schema_1.PermalinkBaseUrlSchema.nullable().optional(),
25
25
  });
26
+ /** Operator-configured legal documents; a link is absent when its URL is not configured. */
27
+ exports.LegalLinksDtoSchema = zod_1.z.object({
28
+ privacyPolicyUrl: zod_1.z.string().optional(),
29
+ termsOfServiceUrl: zod_1.z.string().optional(),
30
+ imprintUrl: zod_1.z.string().optional(),
31
+ });
26
32
  exports.PublicInstanceSettingsDtoSchema = zod_1.z.object({
27
33
  signupEnabled: zod_1.z.boolean(),
28
34
  organizationCreationEnabled: zod_1.z.boolean().optional(),
29
35
  usageManagementUrl: zod_1.z.string().optional(),
36
+ legalLinks: exports.LegalLinksDtoSchema,
30
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-dpp/dto",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/open-dpp/open-dpp#readme",
@@ -33,10 +33,20 @@ export const InstanceSettingsUpdateDtoSchema = z.object({
33
33
 
34
34
  export type InstanceSettingsUpdateDto = z.infer<typeof InstanceSettingsUpdateDtoSchema>;
35
35
 
36
+ /** Operator-configured legal documents; a link is absent when its URL is not configured. */
37
+ export const LegalLinksDtoSchema = z.object({
38
+ privacyPolicyUrl: z.string().optional(),
39
+ termsOfServiceUrl: z.string().optional(),
40
+ imprintUrl: z.string().optional(),
41
+ });
42
+
43
+ export type LegalLinksDto = z.infer<typeof LegalLinksDtoSchema>;
44
+
36
45
  export const PublicInstanceSettingsDtoSchema = z.object({
37
46
  signupEnabled: z.boolean(),
38
47
  organizationCreationEnabled: z.boolean().optional(),
39
48
  usageManagementUrl: z.string().optional(),
49
+ legalLinks: LegalLinksDtoSchema,
40
50
  });
41
51
 
42
52
  export type PublicInstanceSettingsDto = z.infer<typeof PublicInstanceSettingsDtoSchema>;