@aeriajs/builtins 0.0.232 → 0.0.234

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.
@@ -84,6 +84,7 @@ export declare const createAccount: (payload: Partial<PackReferences<SchemaWithI
84
84
  readonly picture: "picture_file";
85
85
  readonly information: "email";
86
86
  readonly active: "active";
87
+ readonly translateBadge: true;
87
88
  };
88
89
  };
89
90
  readonly individualActions: {
@@ -70,6 +70,7 @@ export declare const description: {
70
70
  readonly picture: "picture_file";
71
71
  readonly information: "email";
72
72
  readonly active: "active";
73
+ readonly translateBadge: true;
73
74
  };
74
75
  };
75
76
  readonly individualActions: {
@@ -101,6 +101,7 @@ exports.description = (0, core_1.defineDescription)({
101
101
  picture: 'picture_file',
102
102
  information: 'email',
103
103
  active: 'active',
104
+ translateBadge: true,
104
105
  },
105
106
  },
106
107
  individualActions: {
@@ -94,7 +94,8 @@ export const description = defineDescription({
94
94
  badge: "roles",
95
95
  picture: "picture_file",
96
96
  information: "email",
97
- active: "active"
97
+ active: "active",
98
+ translateBadge: true
98
99
  }
99
100
  },
100
101
  individualActions: {
@@ -1,6 +1,6 @@
1
1
  import type { description } from './description.js';
2
2
  import { type Context, type SchemaWithId, type PackReferences } from '@aeriajs/types';
3
- export declare const editProfile: (payload: Partial<PackReferences<SchemaWithId<typeof description>>> & Record<string, unknown>, context: Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<SchemaWithId<{
3
+ export declare const editProfile: (payload: Partial<PackReferences<SchemaWithId<typeof description>>>, context: Context<typeof description>) => Promise<import("@aeriajs/types").InsertReturnType<SchemaWithId<{
4
4
  readonly $id: "user";
5
5
  readonly icon: "users";
6
6
  readonly required: readonly ["name", "roles", "email"];
@@ -68,6 +68,7 @@ export declare const editProfile: (payload: Partial<PackReferences<SchemaWithId<
68
68
  readonly picture: "picture_file";
69
69
  readonly information: "email";
70
70
  readonly active: "active";
71
+ readonly translateBadge: true;
71
72
  };
72
73
  };
73
74
  readonly individualActions: {
@@ -86,6 +86,7 @@ export declare const getCurrentUser: (_payload: undefined, context: Context<type
86
86
  readonly picture: "picture_file";
87
87
  readonly information: "email";
88
88
  readonly active: "active";
89
+ readonly translateBadge: true;
89
90
  };
90
91
  };
91
92
  readonly individualActions: {
@@ -68,6 +68,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
68
68
  readonly picture: "picture_file";
69
69
  readonly information: "email";
70
70
  readonly active: "active";
71
+ readonly translateBadge: true;
71
72
  };
72
73
  };
73
74
  readonly individualActions: {
@@ -173,6 +174,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
173
174
  readonly picture: "picture_file";
174
175
  readonly information: "email";
175
176
  readonly active: "active";
177
+ readonly translateBadge: true;
176
178
  };
177
179
  };
178
180
  readonly individualActions: {
@@ -335,6 +337,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
335
337
  readonly picture: "picture_file";
336
338
  readonly information: "email";
337
339
  readonly active: "active";
340
+ readonly translateBadge: true;
338
341
  };
339
342
  };
340
343
  readonly individualActions: {
@@ -371,7 +374,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
371
374
  };
372
375
  };
373
376
  };
374
- }>>> & Record<string, unknown>, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
377
+ }>>>, context: Omit<Context, "token">) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
375
378
  readonly $id: "user";
376
379
  readonly icon: "users";
377
380
  readonly required: readonly ["name", "roles", "email"];
@@ -439,6 +442,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
439
442
  readonly picture: "picture_file";
440
443
  readonly information: "email";
441
444
  readonly active: "active";
445
+ readonly translateBadge: true;
442
446
  };
443
447
  };
444
448
  readonly individualActions: {
@@ -618,6 +622,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
618
622
  readonly picture: "picture_file";
619
623
  readonly information: "email";
620
624
  readonly active: "active";
625
+ readonly translateBadge: true;
621
626
  };
622
627
  };
623
628
  readonly individualActions: {
@@ -735,6 +740,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
735
740
  readonly picture: "picture_file";
736
741
  readonly information: "email";
737
742
  readonly active: "active";
743
+ readonly translateBadge: true;
738
744
  };
739
745
  };
740
746
  readonly individualActions: {
@@ -877,6 +883,7 @@ export declare const user: Omit<Collection<never>, "functions" | "description" |
877
883
  readonly picture: "picture_file";
878
884
  readonly information: "email";
879
885
  readonly active: "active";
886
+ readonly translateBadge: true;
880
887
  };
881
888
  };
882
889
  readonly individualActions: {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.user = void 0;
4
4
  const core_1 = require("@aeriajs/core");
5
+ const types_1 = require("@aeriajs/types");
5
6
  const description_js_1 = require("./description.js");
6
7
  const authenticate_js_1 = require("./authenticate.js");
7
8
  const activate_js_1 = require("./activate.js");
@@ -60,6 +61,19 @@ exports.user = (0, core_1.defineCollection)({
60
61
  Object.assign(exports.user, {
61
62
  exposedFunctions,
62
63
  contracts: {
64
+ editProfile: {
65
+ payload: {
66
+ type: 'object',
67
+ required: [],
68
+ properties: description_js_1.description.properties,
69
+ },
70
+ response: [
71
+ types_1.functionSchemas.insertError(),
72
+ {
73
+ $ref: 'user',
74
+ },
75
+ ],
76
+ },
63
77
  getCurrentUser: {
64
78
  response: {
65
79
  $ref: 'user',
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  import { defineCollection, get, getAll, remove, upload, removeFile } from "@aeriajs/core";
3
+ import { functionSchemas } from "@aeriajs/types";
3
4
  import { description } from "./description.mjs";
4
5
  import { authenticate } from "./authenticate.mjs";
5
6
  import { activate } from "./activate.mjs";
@@ -58,6 +59,19 @@ export const user = defineCollection({
58
59
  Object.assign(user, {
59
60
  exposedFunctions,
60
61
  contracts: {
62
+ editProfile: {
63
+ payload: {
64
+ type: "object",
65
+ required: [],
66
+ properties: description.properties
67
+ },
68
+ response: [
69
+ functionSchemas.insertError(),
70
+ {
71
+ $ref: "user"
72
+ }
73
+ ]
74
+ },
61
75
  getCurrentUser: {
62
76
  response: {
63
77
  $ref: "user"
package/dist/index.d.ts CHANGED
@@ -532,6 +532,7 @@ export declare const collections: {
532
532
  readonly picture: "picture_file";
533
533
  readonly information: "email";
534
534
  readonly active: "active";
535
+ readonly translateBadge: true;
535
536
  };
536
537
  };
537
538
  readonly individualActions: {
@@ -637,6 +638,7 @@ export declare const collections: {
637
638
  readonly picture: "picture_file";
638
639
  readonly information: "email";
639
640
  readonly active: "active";
641
+ readonly translateBadge: true;
640
642
  };
641
643
  };
642
644
  readonly individualActions: {
@@ -799,6 +801,7 @@ export declare const collections: {
799
801
  readonly picture: "picture_file";
800
802
  readonly information: "email";
801
803
  readonly active: "active";
804
+ readonly translateBadge: true;
802
805
  };
803
806
  };
804
807
  readonly individualActions: {
@@ -835,7 +838,7 @@ export declare const collections: {
835
838
  };
836
839
  };
837
840
  };
838
- }>>> & Record<string, unknown>, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
841
+ }>>>, context: Omit<import("@aeriajs/types").Context, "token">) => Promise<import("@aeriajs/types").InsertReturnType<import("@aeriajs/types").SchemaWithId<{
839
842
  readonly $id: "user";
840
843
  readonly icon: "users";
841
844
  readonly required: readonly ["name", "roles", "email"];
@@ -903,6 +906,7 @@ export declare const collections: {
903
906
  readonly picture: "picture_file";
904
907
  readonly information: "email";
905
908
  readonly active: "active";
909
+ readonly translateBadge: true;
906
910
  };
907
911
  };
908
912
  readonly individualActions: {
@@ -1082,6 +1086,7 @@ export declare const collections: {
1082
1086
  readonly picture: "picture_file";
1083
1087
  readonly information: "email";
1084
1088
  readonly active: "active";
1089
+ readonly translateBadge: true;
1085
1090
  };
1086
1091
  };
1087
1092
  readonly individualActions: {
@@ -1199,6 +1204,7 @@ export declare const collections: {
1199
1204
  readonly picture: "picture_file";
1200
1205
  readonly information: "email";
1201
1206
  readonly active: "active";
1207
+ readonly translateBadge: true;
1202
1208
  };
1203
1209
  };
1204
1210
  readonly individualActions: {
@@ -1341,6 +1347,7 @@ export declare const collections: {
1341
1347
  readonly picture: "picture_file";
1342
1348
  readonly information: "email";
1343
1349
  readonly active: "active";
1350
+ readonly translateBadge: true;
1344
1351
  };
1345
1352
  };
1346
1353
  readonly individualActions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.232",
3
+ "version": "0.0.234",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -45,7 +45,7 @@
45
45
  "mongodb": "^6.5.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@aeriajs/core": "^0.0.232",
48
+ "@aeriajs/core": "^0.0.234",
49
49
  "@aeriajs/common": "^0.0.132",
50
50
  "@aeriajs/entrypoint": "^0.0.136",
51
51
  "@aeriajs/types": "^0.0.114",