ch-chat-api-typescript-axios 1.0.3

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 (68) hide show
  1. package/README.md +25 -0
  2. package/dist/api/chat-api.d.ts +654 -0
  3. package/dist/api/chat-api.js +835 -0
  4. package/dist/api/chat-api.js.map +1 -0
  5. package/dist/api.d.ts +12 -0
  6. package/dist/api.js +31 -0
  7. package/dist/api.js.map +1 -0
  8. package/dist/base.d.ts +66 -0
  9. package/dist/base.js +69 -0
  10. package/dist/base.js.map +1 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +162 -0
  13. package/dist/common.js.map +1 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +44 -0
  16. package/dist/configuration.js.map +1 -0
  17. package/dist/index.d.ts +14 -0
  18. package/dist/index.js +33 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/models/auth-roles.d.ts +21 -0
  21. package/dist/models/auth-roles.js +26 -0
  22. package/dist/models/auth-roles.js.map +1 -0
  23. package/dist/models/chat-message-model.d.ts +74 -0
  24. package/dist/models/chat-message-model.js +16 -0
  25. package/dist/models/chat-message-model.js.map +1 -0
  26. package/dist/models/chat-messages-model.d.ts +32 -0
  27. package/dist/models/chat-messages-model.js +16 -0
  28. package/dist/models/chat-messages-model.js.map +1 -0
  29. package/dist/models/chat-participant-model.d.ts +74 -0
  30. package/dist/models/chat-participant-model.js +16 -0
  31. package/dist/models/chat-participant-model.js.map +1 -0
  32. package/dist/models/chat-send-message-command.d.ts +31 -0
  33. package/dist/models/chat-send-message-command.js +16 -0
  34. package/dist/models/chat-send-message-command.js.map +1 -0
  35. package/dist/models/chat-session-model.d.ts +90 -0
  36. package/dist/models/chat-session-model.js +16 -0
  37. package/dist/models/chat-session-model.js.map +1 -0
  38. package/dist/models/chat-sessions-model.d.ts +32 -0
  39. package/dist/models/chat-sessions-model.js +16 -0
  40. package/dist/models/chat-sessions-model.js.map +1 -0
  41. package/dist/models/create-chat-session-command.d.ts +37 -0
  42. package/dist/models/create-chat-session-command.js +16 -0
  43. package/dist/models/create-chat-session-command.js.map +1 -0
  44. package/dist/models/index.d.ts +15 -0
  45. package/dist/models/index.js +32 -0
  46. package/dist/models/index.js.map +1 -0
  47. package/dist/models/join-chat-session-command.d.ts +31 -0
  48. package/dist/models/join-chat-session-command.js +16 -0
  49. package/dist/models/join-chat-session-command.js.map +1 -0
  50. package/dist/models/message-types.d.ts +20 -0
  51. package/dist/models/message-types.js +25 -0
  52. package/dist/models/message-types.js.map +1 -0
  53. package/dist/models/paged-list-meta-data.d.ts +78 -0
  54. package/dist/models/paged-list-meta-data.js +16 -0
  55. package/dist/models/paged-list-meta-data.js.map +1 -0
  56. package/dist/models/platform-types.d.ts +22 -0
  57. package/dist/models/platform-types.js +27 -0
  58. package/dist/models/platform-types.js.map +1 -0
  59. package/dist/models/problem-details.d.ts +49 -0
  60. package/dist/models/problem-details.js +16 -0
  61. package/dist/models/problem-details.js.map +1 -0
  62. package/dist/models/put-chat-session-command.d.ts +30 -0
  63. package/dist/models/put-chat-session-command.js +16 -0
  64. package/dist/models/put-chat-session-command.js.map +1 -0
  65. package/dist/models/transfer-manager-command.d.ts +36 -0
  66. package/dist/models/transfer-manager-command.js +16 -0
  67. package/dist/models/transfer-manager-command.js.map +1 -0
  68. package/package.json +60 -0
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PlatformTypes } from './platform-types';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface JoinChatSessionCommand
17
+ */
18
+ export interface JoinChatSessionCommand {
19
+ /**
20
+ *
21
+ * @type {PlatformTypes}
22
+ * @memberof JoinChatSessionCommand
23
+ */
24
+ 'platformType'?: PlatformTypes;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof JoinChatSessionCommand
29
+ */
30
+ 'fromPhoneNumber'?: string | null;
31
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=join-chat-session-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join-chat-session-command.js","sourceRoot":"","sources":["../../src/models/join-chat-session-command.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const MessageTypes: {
18
+ readonly Text: "Text";
19
+ };
20
+ export type MessageTypes = typeof MessageTypes[keyof typeof MessageTypes];
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MessageTypes = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.MessageTypes = {
23
+ Text: 'Text'
24
+ };
25
+ //# sourceMappingURL=message-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-types.js","sourceRoot":"","sources":["../../src/models/message-types.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,YAAY,GAAG;IACxB,IAAI,EAAE,MAAM;CACN,CAAC"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PagedListMetaData
16
+ */
17
+ export interface PagedListMetaData {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PagedListMetaData
22
+ */
23
+ 'pageCount'?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PagedListMetaData
28
+ */
29
+ 'totalItemCount'?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PagedListMetaData
34
+ */
35
+ 'pageNumber'?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PagedListMetaData
40
+ */
41
+ 'pageSize'?: number;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof PagedListMetaData
46
+ */
47
+ 'hasPreviousPage'?: boolean;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof PagedListMetaData
52
+ */
53
+ 'hasNextPage'?: boolean;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof PagedListMetaData
58
+ */
59
+ 'isFirstPage'?: boolean;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof PagedListMetaData
64
+ */
65
+ 'isLastPage'?: boolean;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof PagedListMetaData
70
+ */
71
+ 'firstItemOnPage'?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof PagedListMetaData
76
+ */
77
+ 'lastItemOnPage'?: number;
78
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=paged-list-meta-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paged-list-meta-data.js","sourceRoot":"","sources":["../../src/models/paged-list-meta-data.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const PlatformTypes: {
18
+ readonly Admin: "Admin";
19
+ readonly Web: "Web";
20
+ readonly WhatsApp: "WhatsApp";
21
+ };
22
+ export type PlatformTypes = typeof PlatformTypes[keyof typeof PlatformTypes];
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PlatformTypes = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.PlatformTypes = {
23
+ Admin: 'Admin',
24
+ Web: 'Web',
25
+ WhatsApp: 'WhatsApp'
26
+ };
27
+ //# sourceMappingURL=platform-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-types.js","sourceRoot":"","sources":["../../src/models/platform-types.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,aAAa,GAAG;IACzB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;CACd,CAAC"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProblemDetails
16
+ */
17
+ export interface ProblemDetails {
18
+ [key: string]: any;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ProblemDetails
23
+ */
24
+ 'type'?: string | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProblemDetails
29
+ */
30
+ 'title'?: string | null;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ProblemDetails
35
+ */
36
+ 'status'?: number | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ProblemDetails
41
+ */
42
+ 'detail'?: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ProblemDetails
47
+ */
48
+ 'instance'?: string | null;
49
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=problem-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-details.js","sourceRoot":"","sources":["../../src/models/problem-details.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutChatSessionCommand
16
+ */
17
+ export interface PutChatSessionCommand {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutChatSessionCommand
22
+ */
23
+ 'webhookUrl'?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PutChatSessionCommand
28
+ */
29
+ 'title'?: string | null;
30
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=put-chat-session-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"put-chat-session-command.js","sourceRoot":"","sources":["../../src/models/put-chat-session-command.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransferManagerCommand
16
+ */
17
+ export interface TransferManagerCommand {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TransferManagerCommand
22
+ */
23
+ 'assigneeId'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransferManagerCommand
28
+ */
29
+ 'userName'?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TransferManagerCommand
34
+ */
35
+ 'email'?: string | null;
36
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloudhospital.ChatApi
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=transfer-manager-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-manager-command.js","sourceRoot":"","sources":["../../src/models/transfer-manager-command.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "ch-chat-api-typescript-axios",
3
+ "description": "An OpenAPI generator tool for the CH Chat API, designed to simplify API client generation and streamline integration workflows.",
4
+ "version": "1.0.3",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "commit": "cz",
9
+ "prepare": "husky",
10
+ "generate": "openapi-generator-cli generate && tsc",
11
+ "changeset": "changeset",
12
+ "ci:version": "changeset version",
13
+ "ci:publish": "npm publish --access public",
14
+ "release": "changeset publish"
15
+ },
16
+ "license": "ISC",
17
+ "keywords": [
18
+ "axios",
19
+ "typescript",
20
+ "api generator",
21
+ "chat api",
22
+ "api client",
23
+ "icloudhospital",
24
+ "ch"
25
+ ],
26
+ "devDependencies": {
27
+ "@changesets/cli": "^2.27.11",
28
+ "@openapitools/openapi-generator-cli": "^2.15.3",
29
+ "commitizen": "^4.3.1",
30
+ "cz-conventional-changelog": "^3.3.0",
31
+ "cz-customizable": "^7.1.0",
32
+ "husky": "^9.1.7",
33
+ "typescript": "^5.2.2"
34
+ },
35
+ "dependencies": {
36
+ "axios": "^1.5.0"
37
+ },
38
+ "config": {
39
+ "commitizen": {
40
+ "path": "node_modules/cz-customizable"
41
+ },
42
+ "cz-customizable": {
43
+ "config": ".cz-config.ts"
44
+ }
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/icloudhospital/ch-chat-api-typescript-axios"
49
+ },
50
+ "files": [
51
+ "dist",
52
+ "README.md",
53
+ "LICENSE",
54
+ "package.json"
55
+ ],
56
+ "publishConfig": {
57
+ "access": "public",
58
+ "registry": "https://registry.npmjs.org/"
59
+ }
60
+ }