@purpleschool/student-works 1.5.10 → 1.5.11

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 (27) hide show
  1. package/build/commands/user-balance/get-user-balance.command.d.ts +1 -0
  2. package/build/commands/user-balance/get-user-balance.command.d.ts.map +1 -1
  3. package/build/commands/user-balance/get-user-balance.command.js +1 -0
  4. package/build/constants/errors/errors.d.ts +37 -0
  5. package/build/constants/errors/errors.d.ts.map +1 -1
  6. package/build/constants/errors/errors.js +38 -0
  7. package/build/constants/index.d.ts +1 -0
  8. package/build/constants/index.d.ts.map +1 -1
  9. package/build/constants/index.js +1 -0
  10. package/build/constants/token-reservation/enums/index.d.ts +2 -0
  11. package/build/constants/token-reservation/enums/index.d.ts.map +1 -0
  12. package/build/constants/token-reservation/enums/index.js +17 -0
  13. package/build/constants/token-reservation/enums/token-reservation-status.enum.d.ts +7 -0
  14. package/build/constants/token-reservation/enums/token-reservation-status.enum.d.ts.map +1 -0
  15. package/build/constants/token-reservation/enums/token-reservation-status.enum.js +10 -0
  16. package/build/constants/token-reservation/index.d.ts +2 -0
  17. package/build/constants/token-reservation/index.d.ts.map +1 -0
  18. package/build/constants/token-reservation/index.js +17 -0
  19. package/build/models/presentation/slide-content.schema.js +2 -2
  20. package/commands/user-balance/get-user-balance.command.ts +1 -0
  21. package/constants/errors/errors.ts +38 -0
  22. package/constants/index.ts +1 -0
  23. package/constants/token-reservation/enums/index.ts +1 -0
  24. package/constants/token-reservation/enums/token-reservation-status.enum.ts +6 -0
  25. package/constants/token-reservation/index.ts +1 -0
  26. package/models/presentation/slide-content.schema.ts +2 -2
  27. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare namespace GetUserBalanceCommand {
8
8
  productBalance: z.ZodNumber;
9
9
  referralBonusBalance: z.ZodNumber;
10
10
  carriedOverBalance: z.ZodNumber;
11
+ reservedTokenBalance: z.ZodNumber;
11
12
  }, z.core.$strip>;
12
13
  }, z.core.$strip>;
13
14
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../commands/user-balance/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc;;;;;;;;;qBASzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../commands/user-balance/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc;;;;;;;;;;qBAUzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -12,6 +12,7 @@ var GetUserBalanceCommand;
12
12
  productBalance: zod_1.z.number(),
13
13
  referralBonusBalance: zod_1.z.number(),
14
14
  carriedOverBalance: zod_1.z.number(),
15
+ reservedTokenBalance: zod_1.z.number(),
15
16
  }),
16
17
  });
17
18
  })(GetUserBalanceCommand || (exports.GetUserBalanceCommand = GetUserBalanceCommand = {}));
@@ -14,6 +14,43 @@ export declare const ERRORS: {
14
14
  code: string;
15
15
  httpCode: number;
16
16
  };
17
+ TOKEN_RESERVATION: {
18
+ INSUFFICIENT_BALANCE: {
19
+ message: string;
20
+ code: string;
21
+ httpCode: number;
22
+ };
23
+ NOT_FOUND: {
24
+ message: string;
25
+ code: string;
26
+ httpCode: number;
27
+ };
28
+ INVALID_STATUS: {
29
+ message: string;
30
+ code: string;
31
+ httpCode: number;
32
+ };
33
+ EXPIRED: {
34
+ message: string;
35
+ code: string;
36
+ httpCode: number;
37
+ };
38
+ CREATE_ERROR: {
39
+ message: string;
40
+ code: string;
41
+ httpCode: number;
42
+ };
43
+ COMMIT_ERROR: {
44
+ message: string;
45
+ code: string;
46
+ httpCode: number;
47
+ };
48
+ RELEASE_ERROR: {
49
+ message: string;
50
+ code: string;
51
+ httpCode: number;
52
+ };
53
+ };
17
54
  AUTH_REGISTER_CONFLICT: {
18
55
  message: string;
19
56
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq+ClB,CAAC"}
@@ -19,6 +19,44 @@ exports.ERRORS = {
19
19
  code: 'BALANCE_002',
20
20
  httpCode: 500,
21
21
  },
22
+ // TOKEN RESERVATION
23
+ TOKEN_RESERVATION: {
24
+ INSUFFICIENT_BALANCE: {
25
+ message: 'Недостаточно средств',
26
+ code: 'TOKEN_RESERVATION_001',
27
+ httpCode: 400,
28
+ },
29
+ NOT_FOUND: {
30
+ message: 'Запись о резервировании токенов не найдена',
31
+ code: 'TOKEN_RESERVATION_002',
32
+ httpCode: 404,
33
+ },
34
+ INVALID_STATUS: {
35
+ message: 'Недопустимый статус записи о резервировании токенов',
36
+ code: 'TOKEN_RESERVATION_003',
37
+ httpCode: 400,
38
+ },
39
+ EXPIRED: {
40
+ message: 'Срок записи о резервировании токенов истёк',
41
+ code: 'TOKEN_RESERVATION_004',
42
+ httpCode: 400,
43
+ },
44
+ CREATE_ERROR: {
45
+ message: 'Ошибка при создании записи о резервировании токенов',
46
+ code: 'TOKEN_RESERVATION_005',
47
+ httpCode: 500,
48
+ },
49
+ COMMIT_ERROR: {
50
+ message: 'Ошибка при подтверждении зарезервированных токенов',
51
+ code: 'TOKEN_RESERVATION_006',
52
+ httpCode: 500,
53
+ },
54
+ RELEASE_ERROR: {
55
+ message: 'Ошибка при освобождении зарезервированных токенов',
56
+ code: 'TOKEN_RESERVATION_007',
57
+ httpCode: 500,
58
+ },
59
+ },
22
60
  // AUTH
23
61
  AUTH_REGISTER_CONFLICT: {
24
62
  message: 'Пользователь с этим email уже существует',
@@ -15,4 +15,5 @@ export * from './writer';
15
15
  export * from './files';
16
16
  export * from './common';
17
17
  export * from './presentation';
18
+ export * from './token-reservation';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
@@ -31,3 +31,4 @@ __exportStar(require("./writer"), exports);
31
31
  __exportStar(require("./files"), exports);
32
32
  __exportStar(require("./common"), exports);
33
33
  __exportStar(require("./presentation"), exports);
34
+ __exportStar(require("./token-reservation"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './token-reservation-status.enum';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/token-reservation/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./token-reservation-status.enum"), exports);
@@ -0,0 +1,7 @@
1
+ export declare enum TOKEN_RESERVATION_STATUS {
2
+ PENDING = "pending",
3
+ COMMITTED = "committed",
4
+ RELEASED = "released",
5
+ EXPIRED = "expired"
6
+ }
7
+ //# sourceMappingURL=token-reservation-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-reservation-status.enum.d.ts","sourceRoot":"","sources":["../../../../constants/token-reservation/enums/token-reservation-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAChC,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACtB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TOKEN_RESERVATION_STATUS = void 0;
4
+ var TOKEN_RESERVATION_STATUS;
5
+ (function (TOKEN_RESERVATION_STATUS) {
6
+ TOKEN_RESERVATION_STATUS["PENDING"] = "pending";
7
+ TOKEN_RESERVATION_STATUS["COMMITTED"] = "committed";
8
+ TOKEN_RESERVATION_STATUS["RELEASED"] = "released";
9
+ TOKEN_RESERVATION_STATUS["EXPIRED"] = "expired";
10
+ })(TOKEN_RESERVATION_STATUS || (exports.TOKEN_RESERVATION_STATUS = TOKEN_RESERVATION_STATUS = {}));
@@ -0,0 +1,2 @@
1
+ export * from './enums';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/token-reservation/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
@@ -133,13 +133,13 @@ exports.TextSlideDataSchema = zod_1.z.object({
133
133
  .max(70),
134
134
  description: zod_1.z
135
135
  .string()
136
- .describe('Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 300–800 characters. ' +
136
+ .describe('Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 180–800 characters. ' +
137
137
  'Use **bold** to highlight 1–3 key terms per paragraph (NOT entire sentences). ' +
138
138
  'Use *italics* for definitions, counter-points, or light emphasis (1 per paragraph max). ' +
139
139
  'NO bullet points, NO markdown headers, NO numbered lists. ' +
140
140
  'Each paragraph covers ONE focused idea: e.g. context → main argument → implication. ' +
141
141
  'Do NOT start consecutive paragraphs with the same word. Do NOT cut text short mid-sentence.')
142
- .min(300)
142
+ .min(180)
143
143
  .max(800),
144
144
  version: zod_1.z.literal(1),
145
145
  });
@@ -9,6 +9,7 @@ export namespace GetUserBalanceCommand {
9
9
  productBalance: z.number(),
10
10
  referralBonusBalance: z.number(),
11
11
  carriedOverBalance: z.number(),
12
+ reservedTokenBalance: z.number(),
12
13
  }),
13
14
  });
14
15
  export type Response = z.infer<typeof ResponseSchema>;
@@ -16,6 +16,44 @@ export const ERRORS = {
16
16
  code: 'BALANCE_002',
17
17
  httpCode: 500,
18
18
  },
19
+ // TOKEN RESERVATION
20
+ TOKEN_RESERVATION: {
21
+ INSUFFICIENT_BALANCE: {
22
+ message: 'Недостаточно средств',
23
+ code: 'TOKEN_RESERVATION_001',
24
+ httpCode: 400,
25
+ },
26
+ NOT_FOUND: {
27
+ message: 'Запись о резервировании токенов не найдена',
28
+ code: 'TOKEN_RESERVATION_002',
29
+ httpCode: 404,
30
+ },
31
+ INVALID_STATUS: {
32
+ message: 'Недопустимый статус записи о резервировании токенов',
33
+ code: 'TOKEN_RESERVATION_003',
34
+ httpCode: 400,
35
+ },
36
+ EXPIRED: {
37
+ message: 'Срок записи о резервировании токенов истёк',
38
+ code: 'TOKEN_RESERVATION_004',
39
+ httpCode: 400,
40
+ },
41
+ CREATE_ERROR: {
42
+ message: 'Ошибка при создании записи о резервировании токенов',
43
+ code: 'TOKEN_RESERVATION_005',
44
+ httpCode: 500,
45
+ },
46
+ COMMIT_ERROR: {
47
+ message: 'Ошибка при подтверждении зарезервированных токенов',
48
+ code: 'TOKEN_RESERVATION_006',
49
+ httpCode: 500,
50
+ },
51
+ RELEASE_ERROR: {
52
+ message: 'Ошибка при освобождении зарезервированных токенов',
53
+ code: 'TOKEN_RESERVATION_007',
54
+ httpCode: 500,
55
+ },
56
+ },
19
57
  // AUTH
20
58
  AUTH_REGISTER_CONFLICT: {
21
59
  message: 'Пользователь с этим email уже существует',
@@ -15,3 +15,4 @@ export * from './writer';
15
15
  export * from './files';
16
16
  export * from './common';
17
17
  export * from './presentation';
18
+ export * from './token-reservation';
@@ -0,0 +1 @@
1
+ export * from './token-reservation-status.enum';
@@ -0,0 +1,6 @@
1
+ export enum TOKEN_RESERVATION_STATUS {
2
+ PENDING = 'pending',
3
+ COMMITTED = 'committed',
4
+ RELEASED = 'released',
5
+ EXPIRED = 'expired',
6
+ }
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -267,14 +267,14 @@ export const TextSlideDataSchema = z.object({
267
267
  description: z
268
268
  .string()
269
269
  .describe(
270
- 'Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 300–800 characters. ' +
270
+ 'Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 180–800 characters. ' +
271
271
  'Use **bold** to highlight 1–3 key terms per paragraph (NOT entire sentences). ' +
272
272
  'Use *italics* for definitions, counter-points, or light emphasis (1 per paragraph max). ' +
273
273
  'NO bullet points, NO markdown headers, NO numbered lists. ' +
274
274
  'Each paragraph covers ONE focused idea: e.g. context → main argument → implication. ' +
275
275
  'Do NOT start consecutive paragraphs with the same word. Do NOT cut text short mid-sentence.',
276
276
  )
277
- .min(300)
277
+ .min(180)
278
278
  .max(800),
279
279
  version: z.literal(1),
280
280
  }) satisfies z.ZodType<ITextSlideDataStructure>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/student-works",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",