@purpleschool/multisite 0.0.15 → 0.0.17

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.
Files changed (39) hide show
  1. package/api/controller/http/file.ts +2 -0
  2. package/api/routes.ts +2 -0
  3. package/build/api/controller/http/file.d.ts +2 -0
  4. package/build/api/controller/http/file.d.ts.map +1 -1
  5. package/build/api/controller/http/file.js +2 -0
  6. package/build/api/routes.d.ts +2 -0
  7. package/build/api/routes.d.ts.map +1 -1
  8. package/build/api/routes.js +2 -0
  9. package/build/commands/file/index.d.ts +1 -0
  10. package/build/commands/file/index.d.ts.map +1 -1
  11. package/build/commands/file/index.js +1 -0
  12. package/build/commands/file/upload-file-by-url.command.d.ts +23 -0
  13. package/build/commands/file/upload-file-by-url.command.d.ts.map +1 -0
  14. package/build/commands/file/upload-file-by-url.command.js +14 -0
  15. package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +14 -14
  16. package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +33 -33
  17. package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +5 -5
  18. package/build/commands/payment/cloud-payments.command.d.ts +3 -3
  19. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
  20. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
  21. package/build/constants/user-to-subscription/enums/index.d.ts +1 -0
  22. package/build/constants/user-to-subscription/enums/index.d.ts.map +1 -1
  23. package/build/constants/user-to-subscription/enums/index.js +1 -0
  24. package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.d.ts +5 -0
  25. package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.d.ts.map +1 -0
  26. package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.js +8 -0
  27. package/build/models/image-editor/image-editor-job.schema.d.ts +7 -7
  28. package/build/models/image-generation/image-generation-job-params.schema.d.ts +5 -5
  29. package/build/models/image-generation/image-generation-job.schema.d.ts +12 -12
  30. package/build/models/image-generation/image-generation-model.schema.d.ts +14 -14
  31. package/build/models/subscription.schema.d.ts +2 -2
  32. package/build/queries/subscription/find-subscriptions.command.d.ts +4 -4
  33. package/build/queries/subscription/get-subscriptions-summary.command.d.ts +6 -6
  34. package/build/queries/user/get-my-subscriptions.command.d.ts +6 -6
  35. package/commands/file/index.ts +1 -0
  36. package/commands/file/upload-file-by-url.command.ts +14 -0
  37. package/constants/user-to-subscription/enums/index.ts +1 -0
  38. package/constants/user-to-subscription/enums/user-to-subscription-type.enum.ts +4 -0
  39. package/package.json +1 -1
@@ -33,6 +33,7 @@ export declare namespace GetMySubscriptionsCommand {
33
33
  carryoverPercent: z.ZodNumber;
34
34
  }, "strip", z.ZodTypeAny, {
35
35
  price: number;
36
+ interval: string;
36
37
  uuid: string;
37
38
  siteId: string;
38
39
  name: string;
@@ -42,12 +43,12 @@ export declare namespace GetMySubscriptionsCommand {
42
43
  type: string;
43
44
  name: string;
44
45
  }[];
45
- interval: string;
46
46
  period: number;
47
47
  discount: number;
48
48
  carryoverPercent: number;
49
49
  }, {
50
50
  price: number;
51
+ interval: string;
51
52
  uuid: string;
52
53
  siteId: string;
53
54
  name: string;
@@ -57,7 +58,6 @@ export declare namespace GetMySubscriptionsCommand {
57
58
  type: string;
58
59
  name: string;
59
60
  }[];
60
- interval: string;
61
61
  period: number;
62
62
  discount: number;
63
63
  carryoverPercent: number;
@@ -72,6 +72,7 @@ export declare namespace GetMySubscriptionsCommand {
72
72
  carriedOverTokenBalance: number;
73
73
  subscription: {
74
74
  price: number;
75
+ interval: string;
75
76
  uuid: string;
76
77
  siteId: string;
77
78
  name: string;
@@ -81,7 +82,6 @@ export declare namespace GetMySubscriptionsCommand {
81
82
  type: string;
82
83
  name: string;
83
84
  }[];
84
- interval: string;
85
85
  period: number;
86
86
  discount: number;
87
87
  carryoverPercent: number;
@@ -96,6 +96,7 @@ export declare namespace GetMySubscriptionsCommand {
96
96
  carriedOverTokenBalance: number;
97
97
  subscription: {
98
98
  price: number;
99
+ interval: string;
99
100
  uuid: string;
100
101
  siteId: string;
101
102
  name: string;
@@ -105,7 +106,6 @@ export declare namespace GetMySubscriptionsCommand {
105
106
  type: string;
106
107
  name: string;
107
108
  }[];
108
- interval: string;
109
109
  period: number;
110
110
  discount: number;
111
111
  carryoverPercent: number;
@@ -122,6 +122,7 @@ export declare namespace GetMySubscriptionsCommand {
122
122
  carriedOverTokenBalance: number;
123
123
  subscription: {
124
124
  price: number;
125
+ interval: string;
125
126
  uuid: string;
126
127
  siteId: string;
127
128
  name: string;
@@ -131,7 +132,6 @@ export declare namespace GetMySubscriptionsCommand {
131
132
  type: string;
132
133
  name: string;
133
134
  }[];
134
- interval: string;
135
135
  period: number;
136
136
  discount: number;
137
137
  carryoverPercent: number;
@@ -148,6 +148,7 @@ export declare namespace GetMySubscriptionsCommand {
148
148
  carriedOverTokenBalance: number;
149
149
  subscription: {
150
150
  price: number;
151
+ interval: string;
151
152
  uuid: string;
152
153
  siteId: string;
153
154
  name: string;
@@ -157,7 +158,6 @@ export declare namespace GetMySubscriptionsCommand {
157
158
  type: string;
158
159
  name: string;
159
160
  }[];
160
- interval: string;
161
161
  period: number;
162
162
  discount: number;
163
163
  carryoverPercent: number;
@@ -1 +1,2 @@
1
1
  export * from './upload-file.command';
2
+ export * from './upload-file-by-url.command';
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace UploadFileByUrlCommand {
4
+ export const RequestSchema = z.object({
5
+ url: z.string().url(),
6
+ contentType: z.string().min(1).optional(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const ResponseSchema = z.object({
11
+ url: z.string().url(),
12
+ });
13
+ export type Response = z.infer<typeof ResponseSchema>;
14
+ }
@@ -1 +1,2 @@
1
1
  export * from './user-to-subscription-status.enum';
2
+ export * from './user-to-subscription-type.enum';
@@ -0,0 +1,4 @@
1
+ export enum USER_TO_SUBSCRIPTION_TYPE {
2
+ PAID = 'paid',
3
+ INTERVAL = 'interval',
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/multisite",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Multisite API contracts (DTO schemas, routes, constants)",
5
5
  "type": "commonjs",
6
6
  "main": "build/index.js",