@newgameplusinc/odyssey-sso 2.0.11 → 2.1.1
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/config.d.ts +10 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -0
- package/dist/config.js.map +1 -1
- package/dist/main.d.ts +144 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +414 -209
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +265 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -24,5 +24,15 @@ export declare const actions: {
|
|
|
24
24
|
skull_fetch_all: "skull.fetch-all";
|
|
25
25
|
skull_fetch: "skull.fetch";
|
|
26
26
|
skull_delete: "skull.delete";
|
|
27
|
+
skull_material_add: "skull-material.add";
|
|
28
|
+
skull_material_fetch_all: "skull-material.fetch-all";
|
|
29
|
+
skull_material_fetch: "skull-material.fetch";
|
|
30
|
+
skull_material_update: "skull-material.update";
|
|
31
|
+
skull_material_delete: "skull-material.delete";
|
|
32
|
+
body_add: "body.add";
|
|
33
|
+
body_fetch_all: "body.fetch-all";
|
|
34
|
+
body_fetch: "body.fetch";
|
|
35
|
+
body_update: "body.update";
|
|
36
|
+
body_delete: "body.delete";
|
|
27
37
|
};
|
|
28
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,eAAO,MAAM,EAAE,UAIb,CAAC;AAEH,eAAO,MAAM,YAAY,0CAA0C,CAAC;AACpE,eAAO,MAAM,YAAY,+EACqD,CAAC;AAE/E,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,eAAO,MAAM,EAAE,UAIb,CAAC;AAEH,eAAO,MAAM,YAAY,0CAA0C,CAAC;AACpE,eAAO,MAAM,YAAY,+EACqD,CAAC;AAE/E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCuB,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -28,5 +28,15 @@ export const actions = {
|
|
|
28
28
|
skull_fetch_all: "skull.fetch-all",
|
|
29
29
|
skull_fetch: "skull.fetch",
|
|
30
30
|
skull_delete: "skull.delete",
|
|
31
|
+
skull_material_add: "skull-material.add",
|
|
32
|
+
skull_material_fetch_all: "skull-material.fetch-all",
|
|
33
|
+
skull_material_fetch: "skull-material.fetch",
|
|
34
|
+
skull_material_update: "skull-material.update",
|
|
35
|
+
skull_material_delete: "skull-material.delete",
|
|
36
|
+
body_add: "body.add",
|
|
37
|
+
body_fetch_all: "body.fetch-all",
|
|
38
|
+
body_fetch: "body.fetch",
|
|
39
|
+
body_update: "body.update",
|
|
40
|
+
body_delete: "body.delete",
|
|
31
41
|
};
|
|
32
42
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC;IAC7B,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,aAAa;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,uCAAuC,CAAC;AACpE,MAAM,CAAC,MAAM,YAAY,GACvB,4EAA4E,CAAC;AAE/E,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE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C,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,kBAAkB,EAAE,oBAAoB;IACxC,wBAAwB,EAAE,0BAA0B;IACpD,oBAAoB,EAAE,sBAAsB;IAC5C,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAChC,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;CACe,CAAC"}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddClothFilePayload, AddMaterialFilePayload, AddSkullFilePayload, Cb, Config, GetClothsOptions, GetMaterialsOptions, UpdateClothPayload, UpdateMaterialPayload, UpdateProfilePayload, UpdateSkullPayload } from "./types";
|
|
1
|
+
import { AddClothFilePayload, AddMaterialFilePayload, AddSkullFilePayload, BodyAddFilePayload, Cb, Config, GetClothsOptions, GetMaterialsOptions, SkullMaterialAddFilePayload, SkullMaterialUpdateFilePayload, UpdateClothPayload, UpdateMaterialPayload, UpdateProfilePayload, UpdateSkullPayload, BodyUpdateFilePayload } from "./types";
|
|
2
2
|
export type { Profile } from "./types";
|
|
3
3
|
export default class SSO {
|
|
4
4
|
private readonly config;
|
|
@@ -29,11 +29,22 @@ export default class SSO {
|
|
|
29
29
|
clothingIdMaterial: null;
|
|
30
30
|
skullId: null;
|
|
31
31
|
additionalInfo: null;
|
|
32
|
+
bodyId: null;
|
|
33
|
+
skinColor: null;
|
|
34
|
+
eyeColor: null;
|
|
35
|
+
hairId: null;
|
|
36
|
+
hairColor: null;
|
|
37
|
+
clothingIdMaterialBottom: null;
|
|
38
|
+
clothingIdMaterialShoes: null;
|
|
32
39
|
skull: null;
|
|
33
40
|
clothingTop: null;
|
|
34
41
|
clothingBottom: null;
|
|
35
42
|
clothingShoes: null;
|
|
36
43
|
clothingMaterial: null;
|
|
44
|
+
body: null;
|
|
45
|
+
clothingMaterialBottom: null;
|
|
46
|
+
clothingMaterialShoes: null;
|
|
47
|
+
hair: null;
|
|
37
48
|
deviceId: string;
|
|
38
49
|
} | undefined>;
|
|
39
50
|
readonly fetchProfile: () => Promise<{
|
|
@@ -52,11 +63,22 @@ export default class SSO {
|
|
|
52
63
|
clothingIdMaterial: null;
|
|
53
64
|
skullId: null;
|
|
54
65
|
additionalInfo: null;
|
|
66
|
+
bodyId: null;
|
|
67
|
+
skinColor: null;
|
|
68
|
+
eyeColor: null;
|
|
69
|
+
hairId: null;
|
|
70
|
+
hairColor: null;
|
|
71
|
+
clothingIdMaterialBottom: null;
|
|
72
|
+
clothingIdMaterialShoes: null;
|
|
55
73
|
skull: null;
|
|
56
74
|
clothingTop: null;
|
|
57
75
|
clothingBottom: null;
|
|
58
76
|
clothingShoes: null;
|
|
59
77
|
clothingMaterial: null;
|
|
78
|
+
body: null;
|
|
79
|
+
clothingMaterialBottom: null;
|
|
80
|
+
clothingMaterialShoes: null;
|
|
81
|
+
hair: null;
|
|
60
82
|
deviceId: string;
|
|
61
83
|
} | undefined>;
|
|
62
84
|
readonly refresh: () => Promise<{
|
|
@@ -82,11 +104,22 @@ export default class SSO {
|
|
|
82
104
|
clothingIdMaterial: null;
|
|
83
105
|
skullId: null;
|
|
84
106
|
additionalInfo: null;
|
|
107
|
+
bodyId: null;
|
|
108
|
+
skinColor: null;
|
|
109
|
+
eyeColor: null;
|
|
110
|
+
hairId: null;
|
|
111
|
+
hairColor: null;
|
|
112
|
+
clothingIdMaterialBottom: null;
|
|
113
|
+
clothingIdMaterialShoes: null;
|
|
85
114
|
skull: null;
|
|
86
115
|
clothingTop: null;
|
|
87
116
|
clothingBottom: null;
|
|
88
117
|
clothingShoes: null;
|
|
89
118
|
clothingMaterial: null;
|
|
119
|
+
body: null;
|
|
120
|
+
clothingMaterialBottom: null;
|
|
121
|
+
clothingMaterialShoes: null;
|
|
122
|
+
hair: null;
|
|
90
123
|
deviceId: string;
|
|
91
124
|
} | undefined>;
|
|
92
125
|
readonly avatarUpdate: (file: File) => Promise<{
|
|
@@ -246,5 +279,115 @@ export default class SSO {
|
|
|
246
279
|
createdAt: Date;
|
|
247
280
|
} | undefined>;
|
|
248
281
|
readonly skullDelete: (skullId: string) => Promise<string | undefined>;
|
|
282
|
+
readonly skullMaterialAdd: (payload: SkullMaterialAddFilePayload) => Promise<{
|
|
283
|
+
id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
description: string;
|
|
286
|
+
previewUrl: string;
|
|
287
|
+
url3d: string;
|
|
288
|
+
type: string;
|
|
289
|
+
updatedAt: Date;
|
|
290
|
+
createdAt: Date;
|
|
291
|
+
} | undefined>;
|
|
292
|
+
readonly skullMaterialGetAll: () => Promise<{
|
|
293
|
+
id: string;
|
|
294
|
+
name: string;
|
|
295
|
+
description: string;
|
|
296
|
+
previewUrl: string;
|
|
297
|
+
url3d: string;
|
|
298
|
+
type: string;
|
|
299
|
+
updatedAt: Date;
|
|
300
|
+
createdAt: Date;
|
|
301
|
+
}[] | undefined>;
|
|
302
|
+
readonly skullMaterialGetById: (id: string) => Promise<{
|
|
303
|
+
id: string;
|
|
304
|
+
name: string;
|
|
305
|
+
description: string;
|
|
306
|
+
previewUrl: string;
|
|
307
|
+
url3d: string;
|
|
308
|
+
type: string;
|
|
309
|
+
updatedAt: Date;
|
|
310
|
+
createdAt: Date;
|
|
311
|
+
} | undefined>;
|
|
312
|
+
readonly skullMaterialUpdate: (id: string, payload: SkullMaterialUpdateFilePayload) => Promise<{
|
|
313
|
+
id: string;
|
|
314
|
+
name: string;
|
|
315
|
+
description: string;
|
|
316
|
+
previewUrl: string;
|
|
317
|
+
url3d: string;
|
|
318
|
+
type: string;
|
|
319
|
+
updatedAt: Date;
|
|
320
|
+
createdAt: Date;
|
|
321
|
+
} | undefined>;
|
|
322
|
+
readonly skullMaterialDelete: (id: string) => Promise<{
|
|
323
|
+
id: string;
|
|
324
|
+
name: string;
|
|
325
|
+
description: string;
|
|
326
|
+
previewUrl: string;
|
|
327
|
+
url3d: string;
|
|
328
|
+
type: string;
|
|
329
|
+
updatedAt: Date;
|
|
330
|
+
createdAt: Date;
|
|
331
|
+
} | undefined>;
|
|
332
|
+
readonly bodyAdd: (payload: BodyAddFilePayload) => Promise<{
|
|
333
|
+
id: string;
|
|
334
|
+
shapeNo: number;
|
|
335
|
+
name: string;
|
|
336
|
+
description: string;
|
|
337
|
+
gender: string;
|
|
338
|
+
shape: string;
|
|
339
|
+
previewUrl: string;
|
|
340
|
+
url3d: string;
|
|
341
|
+
updatedAt: Date;
|
|
342
|
+
createdAt: Date;
|
|
343
|
+
} | undefined>;
|
|
344
|
+
readonly bodyGetAll: () => Promise<{
|
|
345
|
+
id: string;
|
|
346
|
+
shapeNo: number;
|
|
347
|
+
name: string;
|
|
348
|
+
description: string;
|
|
349
|
+
gender: string;
|
|
350
|
+
shape: string;
|
|
351
|
+
previewUrl: string;
|
|
352
|
+
url3d: string;
|
|
353
|
+
updatedAt: Date;
|
|
354
|
+
createdAt: Date;
|
|
355
|
+
}[] | undefined>;
|
|
356
|
+
readonly bodyGetById: (id: string) => Promise<{
|
|
357
|
+
id: string;
|
|
358
|
+
shapeNo: number;
|
|
359
|
+
name: string;
|
|
360
|
+
description: string;
|
|
361
|
+
gender: string;
|
|
362
|
+
shape: string;
|
|
363
|
+
previewUrl: string;
|
|
364
|
+
url3d: string;
|
|
365
|
+
updatedAt: Date;
|
|
366
|
+
createdAt: Date;
|
|
367
|
+
} | undefined>;
|
|
368
|
+
readonly bodyUpdate: (id: string, payload: BodyUpdateFilePayload) => Promise<{
|
|
369
|
+
id: string;
|
|
370
|
+
shapeNo: number;
|
|
371
|
+
name: string;
|
|
372
|
+
description: string;
|
|
373
|
+
gender: string;
|
|
374
|
+
shape: string;
|
|
375
|
+
previewUrl: string;
|
|
376
|
+
url3d: string;
|
|
377
|
+
updatedAt: Date;
|
|
378
|
+
createdAt: Date;
|
|
379
|
+
} | undefined>;
|
|
380
|
+
readonly bodyDelete: (id: string) => Promise<{
|
|
381
|
+
id: string;
|
|
382
|
+
shapeNo: number;
|
|
383
|
+
name: string;
|
|
384
|
+
description: string;
|
|
385
|
+
gender: string;
|
|
386
|
+
shape: string;
|
|
387
|
+
previewUrl: string;
|
|
388
|
+
url3d: string;
|
|
389
|
+
updatedAt: Date;
|
|
390
|
+
createdAt: Date;
|
|
391
|
+
} | undefined>;
|
|
249
392
|
}
|
|
250
393
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EAGnB,sBAAsB,EAGtB,mBAAmB,EAGnB,EAAE,EACF,MAAM,EAIN,gBAAgB,EAGhB,mBAAmB,EAKnB,kBAAkB,EAElB,qBAAqB,EAErB,oBAAoB,EAGpB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EAGnB,sBAAsB,EAGtB,mBAAmB,EAGnB,kBAAkB,EAKlB,EAAE,EACF,MAAM,EAIN,gBAAgB,EAGhB,mBAAmB,EAKnB,2BAA2B,EAM3B,8BAA8B,EAG9B,kBAAkB,EAElB,qBAAqB,EAErB,oBAAoB,EAGpB,kBAAkB,EAElB,qBAAqB,EAItB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAO,GAAG;IAOV,OAAO,CAAC,QAAQ,CAAC,MAAM;IANnC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAkB;IACrC,OAAO,CAAC,Q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