@smartsoft001-mobilems/creators-shell-dtos 0.0.0-stage → 2.121.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.
- package/index.js +0 -0
- package/package.json +21 -4
- package/src/index.d.ts +1 -0
- package/src/lib/creators.dto.d.ts +57 -0
- package/src/test-setup.d.ts +0 -0
- package/test-setup.d.ts +0 -0
- package/README.md +0 -3
package/index.js
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001-mobilems/creators-shell-dtos",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.121.0",
|
|
4
|
+
"main": "./index.js",
|
|
5
|
+
"types": "./src/index.d.ts",
|
|
6
|
+
"description": "This library was generated with [Nx](https://nx.dev).",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/emiljuchnikowski/smartsoft.git"
|
|
10
|
+
},
|
|
11
|
+
"author": "Emil Juchnikowski",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/emiljuchnikowski/smartsoft/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme",
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@smartsoft001-mobilems/creators-domain": "^2.121.0"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/creators.dto';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Creator } from '@smartsoft001-mobilems/creators-domain';
|
|
2
|
+
export interface ICreatorsPaginatorDto {
|
|
3
|
+
currentPage?: number;
|
|
4
|
+
maxPerPage?: number;
|
|
5
|
+
totalItemsCount?: number;
|
|
6
|
+
totalPagesCount?: number;
|
|
7
|
+
}
|
|
8
|
+
/** A creator as the HTTP body carries it: `id` (and `role`) are JSON numbers; the service normalises `id` to a string. */
|
|
9
|
+
export type CreatorRawDto = Omit<Creator, 'id'> & {
|
|
10
|
+
id: number | string;
|
|
11
|
+
};
|
|
12
|
+
export interface ICreatorsListResponseDto {
|
|
13
|
+
data?: {
|
|
14
|
+
paginatorDetails?: ICreatorsPaginatorDto;
|
|
15
|
+
items?: CreatorRawDto[];
|
|
16
|
+
extraData?: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
status?: number;
|
|
19
|
+
message?: string | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Body of `creator/{id}` (the profile, MOB-1972: life years, editorial biography, portrait, lead artwork, tags and
|
|
23
|
+
* related lists; staging API only) and of `dictionary/Creator/{id}` (the fallback on every host).
|
|
24
|
+
*/
|
|
25
|
+
export interface ICreatorDetailsResponseDto {
|
|
26
|
+
data?: CreatorRawDto | null;
|
|
27
|
+
status?: number;
|
|
28
|
+
message?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface ICreatorWorksResponseDto<T = unknown> {
|
|
31
|
+
data?: {
|
|
32
|
+
paginatorDetails?: ICreatorsPaginatorDto;
|
|
33
|
+
items?: T[];
|
|
34
|
+
} | null;
|
|
35
|
+
status?: number;
|
|
36
|
+
message?: string | null;
|
|
37
|
+
}
|
|
38
|
+
/** Body of `dictionary/Creator/prefixes/{letter}`: the two-letter groups as upper-case text (`AB`, `BÉ`). */
|
|
39
|
+
export interface ICreatorsPrefixesResponseDto {
|
|
40
|
+
data?: {
|
|
41
|
+
items?: string[];
|
|
42
|
+
} | null;
|
|
43
|
+
status?: number;
|
|
44
|
+
message?: string | null;
|
|
45
|
+
}
|
|
46
|
+
export interface ICreatorsQueryDto {
|
|
47
|
+
page?: number;
|
|
48
|
+
maxPerPage?: number;
|
|
49
|
+
q?: string | null;
|
|
50
|
+
sw?: string | null;
|
|
51
|
+
/** Start of the last name (MOB-1959); the name itself when it has no comma. Not on every API host. */
|
|
52
|
+
lastNameSw?: string | null;
|
|
53
|
+
sort?: 'default' | 'name-asc' | 'name-desc' | null;
|
|
54
|
+
birthFrom?: string | null;
|
|
55
|
+
birthTo?: string | null;
|
|
56
|
+
extraData?: boolean;
|
|
57
|
+
}
|
|
File without changes
|
package/test-setup.d.ts
ADDED
|
File without changes
|
package/README.md
DELETED