@or-sdk/idw 8.2.2 → 8.3.0-beta.4080.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/README.md +46 -1
- package/dist/cjs/IdwClient.js +94 -0
- package/dist/cjs/IdwClient.js.map +1 -0
- package/dist/cjs/IdwHttpClient.js +3 -0
- package/dist/cjs/IdwHttpClient.js.map +1 -0
- package/dist/cjs/constants.js +2 -9
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index.js +42 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/AccountApi.js +18 -0
- package/dist/cjs/modules/AccountApi.js.map +1 -0
- package/dist/cjs/modules/ChatApi.js +90 -0
- package/dist/cjs/modules/ChatApi.js.map +1 -0
- package/dist/cjs/modules/DatasourceSelectionsApi.js +29 -0
- package/dist/cjs/modules/DatasourceSelectionsApi.js.map +1 -0
- package/dist/cjs/modules/DatasourcesApi.js +63 -0
- package/dist/cjs/modules/DatasourcesApi.js.map +1 -0
- package/dist/cjs/modules/DomainsApi.js +60 -0
- package/dist/cjs/modules/DomainsApi.js.map +1 -0
- package/dist/cjs/modules/FeedApi.js +120 -0
- package/dist/cjs/modules/FeedApi.js.map +1 -0
- package/dist/cjs/modules/FilesApi.js +18 -0
- package/dist/cjs/modules/FilesApi.js.map +1 -0
- package/dist/cjs/modules/IdwApi.js +35 -0
- package/dist/cjs/modules/IdwApi.js.map +1 -0
- package/dist/cjs/modules/IdwSettingsApi.js +45 -0
- package/dist/cjs/modules/IdwSettingsApi.js.map +1 -0
- package/dist/cjs/modules/IdwSystemApi.js +30 -0
- package/dist/cjs/modules/IdwSystemApi.js.map +1 -0
- package/dist/cjs/modules/IdwUserApi.js +43 -0
- package/dist/cjs/modules/IdwUserApi.js.map +1 -0
- package/dist/cjs/modules/InstallerApi.js +21 -0
- package/dist/cjs/modules/InstallerApi.js.map +1 -0
- package/dist/cjs/modules/KnowledgeApi.js +70 -0
- package/dist/cjs/modules/KnowledgeApi.js.map +1 -0
- package/dist/cjs/modules/LookupApi.js +37 -0
- package/dist/cjs/modules/LookupApi.js.map +1 -0
- package/dist/cjs/modules/ReportingApi.js +100 -0
- package/dist/cjs/modules/ReportingApi.js.map +1 -0
- package/dist/cjs/modules/SkillsApi.js +57 -0
- package/dist/cjs/modules/SkillsApi.js.map +1 -0
- package/dist/cjs/modules/SystemApi.js +30 -0
- package/dist/cjs/modules/SystemApi.js.map +1 -0
- package/dist/cjs/modules/UserInfoApi.js +17 -0
- package/dist/cjs/modules/UserInfoApi.js.map +1 -0
- package/dist/cjs/resolveIdwId.js +16 -0
- package/dist/cjs/resolveIdwId.js.map +1 -0
- package/dist/cjs/schemas/constructor.js +22 -0
- package/dist/cjs/schemas/constructor.js.map +1 -0
- package/dist/cjs/schemas/index.js +6 -0
- package/dist/cjs/schemas/index.js.map +1 -0
- package/dist/cjs/types/{flow.js → chat.js} +1 -1
- package/dist/cjs/types/chat.js.map +1 -0
- package/dist/cjs/types/datasource-selections.js +3 -0
- package/dist/cjs/types/datasource-selections.js.map +1 -0
- package/dist/cjs/types/datasources.js +3 -0
- package/dist/cjs/types/datasources.js.map +1 -0
- package/dist/cjs/types/{channel.js → domains.js} +1 -1
- package/dist/cjs/types/domains.js.map +1 -0
- package/dist/cjs/types/{idwV2.js → feed.js} +1 -1
- package/dist/cjs/types/feed.js.map +1 -0
- package/dist/cjs/types/{skill.js → files.js} +1 -1
- package/dist/cjs/types/files.js.map +1 -0
- package/dist/cjs/types/{tag.js → idw.js} +1 -1
- package/dist/cjs/types/idw.js.map +1 -0
- package/dist/cjs/types/index.js +13 -12
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/installer.js +3 -0
- package/dist/cjs/types/installer.js.map +1 -0
- package/dist/cjs/types/knowledge.js +0 -9
- package/dist/cjs/types/knowledge.js.map +1 -1
- package/dist/cjs/types/{config.js → lookup.js} +1 -1
- package/dist/cjs/types/lookup.js.map +1 -0
- package/dist/cjs/types/reporting.js +3 -0
- package/dist/cjs/types/reporting.js.map +1 -0
- package/dist/cjs/types/{domain.js → skills.js} +1 -1
- package/dist/cjs/types/skills.js.map +1 -0
- package/dist/cjs/types/system.js +3 -0
- package/dist/cjs/types/system.js.map +1 -0
- package/dist/cjs/types/user.js +3 -0
- package/dist/cjs/types/user.js.map +1 -0
- package/dist/esm/IdwClient.js +60 -0
- package/dist/esm/IdwClient.js.map +1 -0
- package/dist/esm/IdwHttpClient.js +2 -0
- package/dist/esm/IdwHttpClient.js.map +1 -0
- package/dist/esm/constants.js +1 -8
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.js +21 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/AccountApi.js +13 -0
- package/dist/esm/modules/AccountApi.js.map +1 -0
- package/dist/esm/modules/ChatApi.js +85 -0
- package/dist/esm/modules/ChatApi.js.map +1 -0
- package/dist/esm/modules/DatasourceSelectionsApi.js +24 -0
- package/dist/esm/modules/DatasourceSelectionsApi.js.map +1 -0
- package/dist/esm/modules/DatasourcesApi.js +58 -0
- package/dist/esm/modules/DatasourcesApi.js.map +1 -0
- package/dist/esm/modules/DomainsApi.js +55 -0
- package/dist/esm/modules/DomainsApi.js.map +1 -0
- package/dist/esm/modules/FeedApi.js +115 -0
- package/dist/esm/modules/FeedApi.js.map +1 -0
- package/dist/esm/modules/FilesApi.js +13 -0
- package/dist/esm/modules/FilesApi.js.map +1 -0
- package/dist/esm/modules/IdwApi.js +30 -0
- package/dist/esm/modules/IdwApi.js.map +1 -0
- package/dist/esm/modules/IdwSettingsApi.js +40 -0
- package/dist/esm/modules/IdwSettingsApi.js.map +1 -0
- package/dist/esm/modules/IdwSystemApi.js +25 -0
- package/dist/esm/modules/IdwSystemApi.js.map +1 -0
- package/dist/esm/modules/IdwUserApi.js +38 -0
- package/dist/esm/modules/IdwUserApi.js.map +1 -0
- package/dist/esm/modules/InstallerApi.js +16 -0
- package/dist/esm/modules/InstallerApi.js.map +1 -0
- package/dist/esm/modules/KnowledgeApi.js +65 -0
- package/dist/esm/modules/KnowledgeApi.js.map +1 -0
- package/dist/esm/modules/LookupApi.js +32 -0
- package/dist/esm/modules/LookupApi.js.map +1 -0
- package/dist/esm/modules/ReportingApi.js +95 -0
- package/dist/esm/modules/ReportingApi.js.map +1 -0
- package/dist/esm/modules/SkillsApi.js +52 -0
- package/dist/esm/modules/SkillsApi.js.map +1 -0
- package/dist/esm/modules/SystemApi.js +25 -0
- package/dist/esm/modules/SystemApi.js.map +1 -0
- package/dist/esm/modules/UserInfoApi.js +12 -0
- package/dist/esm/modules/UserInfoApi.js.map +1 -0
- package/dist/esm/resolveIdwId.js +12 -0
- package/dist/esm/resolveIdwId.js.map +1 -0
- package/dist/esm/schemas/constructor.js +19 -0
- package/dist/esm/schemas/constructor.js.map +1 -0
- package/dist/esm/schemas/index.js +2 -0
- package/dist/esm/schemas/index.js.map +1 -0
- package/dist/esm/types/chat.js +2 -0
- package/dist/esm/types/chat.js.map +1 -0
- package/dist/esm/types/datasource-selections.js +2 -0
- package/dist/esm/types/datasource-selections.js.map +1 -0
- package/dist/esm/types/datasources.js +2 -0
- package/dist/esm/types/datasources.js.map +1 -0
- package/dist/esm/types/domains.js +2 -0
- package/dist/esm/types/domains.js.map +1 -0
- package/dist/esm/types/feed.js +2 -0
- package/dist/esm/types/feed.js.map +1 -0
- package/dist/esm/types/files.js +2 -0
- package/dist/esm/types/files.js.map +1 -0
- package/dist/esm/types/idw.js +2 -0
- package/dist/esm/types/idw.js.map +1 -0
- package/dist/esm/types/index.js +13 -12
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/installer.js +2 -0
- package/dist/esm/types/installer.js.map +1 -0
- package/dist/esm/types/knowledge.js +1 -8
- package/dist/esm/types/knowledge.js.map +1 -1
- package/dist/esm/types/lookup.js +2 -0
- package/dist/esm/types/lookup.js.map +1 -0
- package/dist/esm/types/reporting.js +2 -0
- package/dist/esm/types/reporting.js.map +1 -0
- package/dist/esm/types/skills.js +2 -0
- package/dist/esm/types/skills.js.map +1 -0
- package/dist/esm/types/system.js +2 -0
- package/dist/esm/types/system.js.map +1 -0
- package/dist/esm/types/user.js +2 -0
- package/dist/esm/types/user.js.map +1 -0
- package/dist/types/IdwClient.d.ts +52 -0
- package/dist/types/IdwClient.d.ts.map +1 -0
- package/dist/types/IdwHttpClient.d.ts +7 -0
- package/dist/types/IdwHttpClient.d.ts.map +1 -0
- package/dist/types/constants.d.ts +1 -7
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/index.d.ts +22 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/AccountApi.d.ts +9 -0
- package/dist/types/modules/AccountApi.d.ts.map +1 -0
- package/dist/types/modules/ChatApi.d.ts +21 -0
- package/dist/types/modules/ChatApi.d.ts.map +1 -0
- package/dist/types/modules/DatasourceSelectionsApi.d.ts +11 -0
- package/dist/types/modules/DatasourceSelectionsApi.d.ts.map +1 -0
- package/dist/types/modules/DatasourcesApi.d.ts +16 -0
- package/dist/types/modules/DatasourcesApi.d.ts.map +1 -0
- package/dist/types/modules/DomainsApi.d.ts +16 -0
- package/dist/types/modules/DomainsApi.d.ts.map +1 -0
- package/dist/types/modules/FeedApi.d.ts +25 -0
- package/dist/types/modules/FeedApi.d.ts.map +1 -0
- package/dist/types/modules/FilesApi.d.ts +8 -0
- package/dist/types/modules/FilesApi.d.ts.map +1 -0
- package/dist/types/modules/IdwApi.d.ts +11 -0
- package/dist/types/modules/IdwApi.d.ts.map +1 -0
- package/dist/types/modules/IdwSettingsApi.d.ts +12 -0
- package/dist/types/modules/IdwSettingsApi.d.ts.map +1 -0
- package/dist/types/modules/IdwSystemApi.d.ts +10 -0
- package/dist/types/modules/IdwSystemApi.d.ts.map +1 -0
- package/dist/types/modules/IdwUserApi.d.ts +14 -0
- package/dist/types/modules/IdwUserApi.d.ts.map +1 -0
- package/dist/types/modules/InstallerApi.d.ts +10 -0
- package/dist/types/modules/InstallerApi.d.ts.map +1 -0
- package/dist/types/modules/KnowledgeApi.d.ts +19 -0
- package/dist/types/modules/KnowledgeApi.d.ts.map +1 -0
- package/dist/types/modules/LookupApi.d.ts +12 -0
- package/dist/types/modules/LookupApi.d.ts.map +1 -0
- package/dist/types/modules/ReportingApi.d.ts +21 -0
- package/dist/types/modules/ReportingApi.d.ts.map +1 -0
- package/dist/types/modules/SkillsApi.d.ts +15 -0
- package/dist/types/modules/SkillsApi.d.ts.map +1 -0
- package/dist/types/modules/SystemApi.d.ts +10 -0
- package/dist/types/modules/SystemApi.d.ts.map +1 -0
- package/dist/types/modules/UserInfoApi.d.ts +8 -0
- package/dist/types/modules/UserInfoApi.d.ts.map +1 -0
- package/dist/types/resolveIdwId.d.ts +4 -0
- package/dist/types/resolveIdwId.d.ts.map +1 -0
- package/dist/types/schemas/constructor.d.ts +41 -0
- package/dist/types/schemas/constructor.d.ts.map +1 -0
- package/dist/types/schemas/index.d.ts +2 -0
- package/dist/types/schemas/index.d.ts.map +1 -0
- package/dist/types/types/chat.d.ts +106 -0
- package/dist/types/types/chat.d.ts.map +1 -0
- package/dist/types/types/datasource-selections.d.ts +10 -0
- package/dist/types/types/datasource-selections.d.ts.map +1 -0
- package/dist/types/types/datasources.d.ts +36 -0
- package/dist/types/types/datasources.d.ts.map +1 -0
- package/dist/types/types/domains.d.ts +46 -0
- package/dist/types/types/domains.d.ts.map +1 -0
- package/dist/types/types/feed.d.ts +127 -0
- package/dist/types/types/feed.d.ts.map +1 -0
- package/dist/types/types/files.d.ts +8 -0
- package/dist/types/types/files.d.ts.map +1 -0
- package/dist/types/types/idw.d.ts +62 -0
- package/dist/types/types/idw.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +13 -12
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/installer.d.ts +11 -0
- package/dist/types/types/installer.d.ts.map +1 -0
- package/dist/types/types/knowledge.d.ts +47 -26
- package/dist/types/types/knowledge.d.ts.map +1 -1
- package/dist/types/types/lookup.d.ts +24 -0
- package/dist/types/types/lookup.d.ts.map +1 -0
- package/dist/types/types/reporting.d.ts +105 -0
- package/dist/types/types/reporting.d.ts.map +1 -0
- package/dist/types/types/skills.d.ts +130 -0
- package/dist/types/types/skills.d.ts.map +1 -0
- package/dist/types/types/system.d.ts +18 -0
- package/dist/types/types/system.d.ts.map +1 -0
- package/dist/types/types/user.d.ts +65 -0
- package/dist/types/types/user.d.ts.map +1 -0
- package/package.json +3 -5
- package/src/IdwClient.ts +98 -0
- package/src/IdwHttpClient.ts +7 -0
- package/src/constants.ts +1 -9
- package/src/index.ts +24 -4
- package/src/modules/AccountApi.ts +15 -0
- package/src/modules/ChatApi.ts +109 -0
- package/src/modules/DatasourceSelectionsApi.ts +29 -0
- package/src/modules/DatasourcesApi.ts +77 -0
- package/src/modules/DomainsApi.ts +72 -0
- package/src/modules/FeedApi.ts +149 -0
- package/src/modules/FilesApi.ts +14 -0
- package/src/modules/IdwApi.ts +35 -0
- package/src/modules/IdwSettingsApi.ts +51 -0
- package/src/modules/IdwSystemApi.ts +28 -0
- package/src/modules/IdwUserApi.ts +51 -0
- package/src/modules/InstallerApi.ts +20 -0
- package/src/modules/KnowledgeApi.ts +82 -0
- package/src/modules/LookupApi.ts +47 -0
- package/src/modules/ReportingApi.ts +135 -0
- package/src/modules/SkillsApi.ts +71 -0
- package/src/modules/SystemApi.ts +28 -0
- package/src/modules/UserInfoApi.ts +13 -0
- package/src/resolveIdwId.ts +16 -0
- package/src/schemas/constructor.ts +25 -0
- package/src/schemas/index.ts +1 -0
- package/src/types/chat.ts +122 -0
- package/src/types/datasource-selections.ts +11 -0
- package/src/types/datasources.ts +54 -0
- package/src/types/domains.ts +49 -0
- package/src/types/feed.ts +142 -0
- package/src/types/files.ts +9 -0
- package/src/types/idw.ts +70 -0
- package/src/types/index.ts +13 -12
- package/src/types/installer.ts +11 -0
- package/src/types/knowledge.ts +59 -40
- package/src/types/lookup.ts +26 -0
- package/src/types/reporting.ts +124 -0
- package/src/types/skills.ts +123 -0
- package/src/types/system.ts +17 -0
- package/src/types/user.ts +65 -0
- package/dist/cjs/api/BaseApi.js +0 -23
- package/dist/cjs/api/BaseApi.js.map +0 -1
- package/dist/cjs/api/channelApi.js +0 -88
- package/dist/cjs/api/channelApi.js.map +0 -1
- package/dist/cjs/api/domainApi.js +0 -193
- package/dist/cjs/api/domainApi.js.map +0 -1
- package/dist/cjs/api/domainRelationshipApi.js +0 -115
- package/dist/cjs/api/domainRelationshipApi.js.map +0 -1
- package/dist/cjs/api/errors.js +0 -52
- package/dist/cjs/api/errors.js.map +0 -1
- package/dist/cjs/api/flowApi.js +0 -43
- package/dist/cjs/api/flowApi.js.map +0 -1
- package/dist/cjs/api/idwDbApi.js +0 -40
- package/dist/cjs/api/idwDbApi.js.map +0 -1
- package/dist/cjs/api/idwInfoApi.js +0 -62
- package/dist/cjs/api/idwInfoApi.js.map +0 -1
- package/dist/cjs/api/idwRwcApi.js +0 -132
- package/dist/cjs/api/idwRwcApi.js.map +0 -1
- package/dist/cjs/api/index.js +0 -39
- package/dist/cjs/api/index.js.map +0 -1
- package/dist/cjs/api/memoryApi.js +0 -78
- package/dist/cjs/api/memoryApi.js.map +0 -1
- package/dist/cjs/api/migrationApi.js +0 -46
- package/dist/cjs/api/migrationApi.js.map +0 -1
- package/dist/cjs/api/skillApi.js +0 -212
- package/dist/cjs/api/skillApi.js.map +0 -1
- package/dist/cjs/api/slugApi.js +0 -80
- package/dist/cjs/api/slugApi.js.map +0 -1
- package/dist/cjs/api/tagApi.js +0 -106
- package/dist/cjs/api/tagApi.js.map +0 -1
- package/dist/cjs/idwApi.js +0 -25
- package/dist/cjs/idwApi.js.map +0 -1
- package/dist/cjs/idwApiV2.js +0 -415
- package/dist/cjs/idwApiV2.js.map +0 -1
- package/dist/cjs/types/channel.js.map +0 -1
- package/dist/cjs/types/common.js +0 -20
- package/dist/cjs/types/common.js.map +0 -1
- package/dist/cjs/types/config.js.map +0 -1
- package/dist/cjs/types/domain.js.map +0 -1
- package/dist/cjs/types/flow.js.map +0 -1
- package/dist/cjs/types/idwInfo.js +0 -10
- package/dist/cjs/types/idwInfo.js.map +0 -1
- package/dist/cjs/types/idwRwc.js +0 -11
- package/dist/cjs/types/idwRwc.js.map +0 -1
- package/dist/cjs/types/idwV2.js.map +0 -1
- package/dist/cjs/types/memory.js +0 -3
- package/dist/cjs/types/memory.js.map +0 -1
- package/dist/cjs/types/rwcPayload.js +0 -22
- package/dist/cjs/types/rwcPayload.js.map +0 -1
- package/dist/cjs/types/skill.js.map +0 -1
- package/dist/cjs/types/tag.js.map +0 -1
- package/dist/esm/api/BaseApi.js +0 -17
- package/dist/esm/api/BaseApi.js.map +0 -1
- package/dist/esm/api/channelApi.js +0 -67
- package/dist/esm/api/channelApi.js.map +0 -1
- package/dist/esm/api/domainApi.js +0 -110
- package/dist/esm/api/domainApi.js.map +0 -1
- package/dist/esm/api/domainRelationshipApi.js +0 -94
- package/dist/esm/api/domainRelationshipApi.js.map +0 -1
- package/dist/esm/api/errors.js +0 -10
- package/dist/esm/api/errors.js.map +0 -1
- package/dist/esm/api/flowApi.js +0 -22
- package/dist/esm/api/flowApi.js.map +0 -1
- package/dist/esm/api/idwDbApi.js +0 -19
- package/dist/esm/api/idwDbApi.js.map +0 -1
- package/dist/esm/api/idwInfoApi.js +0 -41
- package/dist/esm/api/idwInfoApi.js.map +0 -1
- package/dist/esm/api/idwRwcApi.js +0 -71
- package/dist/esm/api/idwRwcApi.js.map +0 -1
- package/dist/esm/api/index.js +0 -12
- package/dist/esm/api/index.js.map +0 -1
- package/dist/esm/api/memoryApi.js +0 -57
- package/dist/esm/api/memoryApi.js.map +0 -1
- package/dist/esm/api/migrationApi.js +0 -25
- package/dist/esm/api/migrationApi.js.map +0 -1
- package/dist/esm/api/skillApi.js +0 -117
- package/dist/esm/api/skillApi.js.map +0 -1
- package/dist/esm/api/slugApi.js +0 -27
- package/dist/esm/api/slugApi.js.map +0 -1
- package/dist/esm/api/tagApi.js +0 -85
- package/dist/esm/api/tagApi.js.map +0 -1
- package/dist/esm/idwApi.js +0 -20
- package/dist/esm/idwApi.js.map +0 -1
- package/dist/esm/idwApiV2.js +0 -380
- package/dist/esm/idwApiV2.js.map +0 -1
- package/dist/esm/types/channel.js +0 -2
- package/dist/esm/types/channel.js.map +0 -1
- package/dist/esm/types/common.js +0 -17
- package/dist/esm/types/common.js.map +0 -1
- package/dist/esm/types/config.js +0 -2
- package/dist/esm/types/config.js.map +0 -1
- package/dist/esm/types/domain.js +0 -2
- package/dist/esm/types/domain.js.map +0 -1
- package/dist/esm/types/flow.js +0 -2
- package/dist/esm/types/flow.js.map +0 -1
- package/dist/esm/types/idwInfo.js +0 -7
- package/dist/esm/types/idwInfo.js.map +0 -1
- package/dist/esm/types/idwRwc.js +0 -8
- package/dist/esm/types/idwRwc.js.map +0 -1
- package/dist/esm/types/idwV2.js +0 -2
- package/dist/esm/types/idwV2.js.map +0 -1
- package/dist/esm/types/memory.js +0 -2
- package/dist/esm/types/memory.js.map +0 -1
- package/dist/esm/types/rwcPayload.js +0 -19
- package/dist/esm/types/rwcPayload.js.map +0 -1
- package/dist/esm/types/skill.js +0 -2
- package/dist/esm/types/skill.js.map +0 -1
- package/dist/esm/types/tag.js +0 -2
- package/dist/esm/types/tag.js.map +0 -1
- package/dist/types/api/BaseApi.d.ts +0 -9
- package/dist/types/api/BaseApi.d.ts.map +0 -1
- package/dist/types/api/channelApi.d.ts +0 -14
- package/dist/types/api/channelApi.d.ts.map +0 -1
- package/dist/types/api/domainApi.d.ts +0 -14
- package/dist/types/api/domainApi.d.ts.map +0 -1
- package/dist/types/api/domainRelationshipApi.d.ts +0 -27
- package/dist/types/api/domainRelationshipApi.d.ts.map +0 -1
- package/dist/types/api/errors.d.ts +0 -10
- package/dist/types/api/errors.d.ts.map +0 -1
- package/dist/types/api/flowApi.d.ts +0 -9
- package/dist/types/api/flowApi.d.ts.map +0 -1
- package/dist/types/api/idwDbApi.d.ts +0 -8
- package/dist/types/api/idwDbApi.d.ts.map +0 -1
- package/dist/types/api/idwInfoApi.d.ts +0 -11
- package/dist/types/api/idwInfoApi.d.ts.map +0 -1
- package/dist/types/api/idwRwcApi.d.ts +0 -15
- package/dist/types/api/idwRwcApi.d.ts.map +0 -1
- package/dist/types/api/index.d.ts +0 -12
- package/dist/types/api/index.d.ts.map +0 -1
- package/dist/types/api/memoryApi.d.ts +0 -13
- package/dist/types/api/memoryApi.d.ts.map +0 -1
- package/dist/types/api/migrationApi.d.ts +0 -9
- package/dist/types/api/migrationApi.d.ts.map +0 -1
- package/dist/types/api/skillApi.d.ts +0 -15
- package/dist/types/api/skillApi.d.ts.map +0 -1
- package/dist/types/api/slugApi.d.ts +0 -7
- package/dist/types/api/slugApi.d.ts.map +0 -1
- package/dist/types/api/tagApi.d.ts +0 -15
- package/dist/types/api/tagApi.d.ts.map +0 -1
- package/dist/types/idwApi.d.ts +0 -20
- package/dist/types/idwApi.d.ts.map +0 -1
- package/dist/types/idwApiV2.d.ts +0 -76
- package/dist/types/idwApiV2.d.ts.map +0 -1
- package/dist/types/types/channel.d.ts +0 -36
- package/dist/types/types/channel.d.ts.map +0 -1
- package/dist/types/types/common.d.ts +0 -30
- package/dist/types/types/common.d.ts.map +0 -1
- package/dist/types/types/config.d.ts +0 -9
- package/dist/types/types/config.d.ts.map +0 -1
- package/dist/types/types/domain.d.ts +0 -55
- package/dist/types/types/domain.d.ts.map +0 -1
- package/dist/types/types/flow.d.ts +0 -26
- package/dist/types/types/flow.d.ts.map +0 -1
- package/dist/types/types/idwInfo.d.ts +0 -69
- package/dist/types/types/idwInfo.d.ts.map +0 -1
- package/dist/types/types/idwRwc.d.ts +0 -15
- package/dist/types/types/idwRwc.d.ts.map +0 -1
- package/dist/types/types/idwV2.d.ts +0 -358
- package/dist/types/types/idwV2.d.ts.map +0 -1
- package/dist/types/types/memory.d.ts +0 -12
- package/dist/types/types/memory.d.ts.map +0 -1
- package/dist/types/types/rwcPayload.d.ts +0 -31
- package/dist/types/types/rwcPayload.d.ts.map +0 -1
- package/dist/types/types/skill.d.ts +0 -25
- package/dist/types/types/skill.d.ts.map +0 -1
- package/dist/types/types/tag.d.ts +0 -15
- package/dist/types/types/tag.d.ts.map +0 -1
- package/src/api/BaseApi.ts +0 -29
- package/src/api/channelApi.ts +0 -116
- package/src/api/domainApi.ts +0 -133
- package/src/api/domainRelationshipApi.ts +0 -170
- package/src/api/errors.ts +0 -7
- package/src/api/flowApi.ts +0 -44
- package/src/api/idwDbApi.ts +0 -29
- package/src/api/idwInfoApi.ts +0 -63
- package/src/api/idwRwcApi.ts +0 -98
- package/src/api/index.ts +0 -11
- package/src/api/memoryApi.ts +0 -92
- package/src/api/migrationApi.ts +0 -40
- package/src/api/skillApi.ts +0 -144
- package/src/api/slugApi.ts +0 -22
- package/src/api/tagApi.ts +0 -141
- package/src/idwApi.ts +0 -46
- package/src/idwApiV2.ts +0 -725
- package/src/types/channel.ts +0 -17
- package/src/types/common.ts +0 -36
- package/src/types/config.ts +0 -24
- package/src/types/domain.ts +0 -49
- package/src/types/flow.ts +0 -30
- package/src/types/idwInfo.ts +0 -76
- package/src/types/idwRwc.ts +0 -17
- package/src/types/idwV2.ts +0 -419
- package/src/types/memory.ts +0 -8
- package/src/types/rwcPayload.ts +0 -36
- package/src/types/skill.ts +0 -32
- package/src/types/tag.ts +0 -13
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.IdwInfoApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var IdwInfoApi = (function (_super) {
|
|
21
|
-
__extends(IdwInfoApi, _super);
|
|
22
|
-
function IdwInfoApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
IdwInfoApi.prototype.getBaseInfo = function () {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('idw-info'),
|
|
28
|
-
method: 'GET',
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
IdwInfoApi.prototype.getIdwInfoWithStatistic = function () {
|
|
32
|
-
return this.providers.makeRequest({
|
|
33
|
-
route: this.buildRoute('idw-info/statistic'),
|
|
34
|
-
method: 'GET',
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
IdwInfoApi.prototype.updateIdwInfo = function (data) {
|
|
38
|
-
return this.providers.makeRequest({
|
|
39
|
-
route: this.buildRoute('idw-info'),
|
|
40
|
-
method: 'PATCH',
|
|
41
|
-
data: data,
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
IdwInfoApi.prototype.idwNameCanBeTaken = function (name) {
|
|
45
|
-
return this.providers.makeRequest({
|
|
46
|
-
route: this.buildRoute('idw-info/name-can-be-taken'),
|
|
47
|
-
method: 'get',
|
|
48
|
-
params: {
|
|
49
|
-
name: name,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
IdwInfoApi.prototype.isIdwAccount = function () {
|
|
54
|
-
return this.providers.makeRequest({
|
|
55
|
-
route: this.buildRoute('idw-info/is-idw-account'),
|
|
56
|
-
method: 'get',
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
return IdwInfoApi;
|
|
60
|
-
}(BaseApi_1.BaseApi));
|
|
61
|
-
exports.IdwInfoApi = IdwInfoApi;
|
|
62
|
-
//# sourceMappingURL=idwInfoApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idwInfoApi.js","sourceRoot":"","sources":["../../../src/api/idwInfoApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAAgC,8BAAO;IACrC,oBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAKD,gCAAW,GAAX;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,4CAAuB,GAAvB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAC5C,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,kCAAa,GAAb,UAAc,IAAuB;QACnC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,MAAM,EAAE,OAAO;YACf,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAKD,sCAAiB,GAAjB,UAAkB,IAAY;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;YACpD,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,IAAI,MAAA;aACL;SACF,CAAC,CAAC;IACL,CAAC;IAKD,iCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;YACjD,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AA1DD,CAAgC,iBAAO,GA0DtC;AA1DY,gCAAU"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
28
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.IdwRwcApi = void 0;
|
|
55
|
-
var BaseApi_1 = require("./BaseApi");
|
|
56
|
-
var noop = function () { };
|
|
57
|
-
var IdwRwcApi = (function (_super) {
|
|
58
|
-
__extends(IdwRwcApi, _super);
|
|
59
|
-
function IdwRwcApi(config) {
|
|
60
|
-
return _super.call(this, config) || this;
|
|
61
|
-
}
|
|
62
|
-
IdwRwcApi.prototype.getIdwRwcData = function () {
|
|
63
|
-
return this.providers.makeRequest({
|
|
64
|
-
route: this.buildRoute('idw-rwc'),
|
|
65
|
-
method: 'GET',
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
IdwRwcApi.prototype.upsertIdwRwcData = function (data) {
|
|
69
|
-
return this.providers.makeRequest({
|
|
70
|
-
route: this.buildRoute('idw-rwc'),
|
|
71
|
-
method: 'POST',
|
|
72
|
-
data: data,
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
IdwRwcApi.prototype.deleteIdwRwcData = function () {
|
|
76
|
-
return this.providers.makeRequest({
|
|
77
|
-
route: this.buildRoute('idw-rwc'),
|
|
78
|
-
method: 'DELETE',
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
IdwRwcApi.prototype.installRwcChat = function () {
|
|
82
|
-
return this.providers.makeRequest({
|
|
83
|
-
route: this.buildRoute('idw-rwc/install'),
|
|
84
|
-
method: 'POST',
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
IdwRwcApi.prototype.getChatStatus = function () {
|
|
88
|
-
return this.providers.makeRequest({
|
|
89
|
-
route: this.buildRoute('idw-rwc/install'),
|
|
90
|
-
method: 'GET',
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
IdwRwcApi.prototype.getSubscriptionOnInstallationProcess = function (pollingInterval, tikCallback, errorCallback) {
|
|
94
|
-
if (tikCallback === void 0) { tikCallback = noop; }
|
|
95
|
-
if (errorCallback === void 0) { errorCallback = noop; }
|
|
96
|
-
var $this = this;
|
|
97
|
-
var intervalId;
|
|
98
|
-
return {
|
|
99
|
-
subscribe: function () {
|
|
100
|
-
var _this = this;
|
|
101
|
-
intervalId = setInterval(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
102
|
-
var status_1, e_1;
|
|
103
|
-
return __generator(this, function (_a) {
|
|
104
|
-
switch (_a.label) {
|
|
105
|
-
case 0:
|
|
106
|
-
_a.trys.push([0, 2, , 3]);
|
|
107
|
-
return [4, $this.getChatStatus()];
|
|
108
|
-
case 1:
|
|
109
|
-
status_1 = _a.sent();
|
|
110
|
-
tikCallback(status_1);
|
|
111
|
-
return [3, 3];
|
|
112
|
-
case 2:
|
|
113
|
-
e_1 = _a.sent();
|
|
114
|
-
errorCallback(e_1);
|
|
115
|
-
this.unsubscribe();
|
|
116
|
-
return [3, 3];
|
|
117
|
-
case 3: return [2];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}); }, pollingInterval);
|
|
121
|
-
},
|
|
122
|
-
unsubscribe: function () {
|
|
123
|
-
if (intervalId) {
|
|
124
|
-
clearInterval(intervalId);
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
return IdwRwcApi;
|
|
130
|
-
}(BaseApi_1.BaseApi));
|
|
131
|
-
exports.IdwRwcApi = IdwRwcApi;
|
|
132
|
-
//# sourceMappingURL=idwRwcApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idwRwcApi.js","sourceRoot":"","sources":["../../../src/api/idwRwcApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC,IAAM,IAAI,GAA0B,cAAO,CAAC,CAAC;AAE7C;IAA+B,6BAAO;IACpC,mBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAKD,iCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,oCAAgB,GAAhB,UAAiB,IAAsB;QACrC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAKD,oCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAKD,kCAAc,GAAd;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAKD,iCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAQD,wDAAoC,GAApC,UACE,eAAuB,EACvB,WAAuD,EACvD,aAA0C;QAD1C,4BAAA,EAAA,kBAAuD;QACvD,8BAAA,EAAA,oBAA0C;QAG1C,IAAM,KAAK,GAAG,IAAI,CAAC;QACnB,IAAI,UAAsC,CAAC;QAE3C,OAAO;YACL,SAAS,EAAE;gBAAA,iBAUV;gBATC,UAAU,GAAG,WAAW,CAAC;;;;;;gCAEN,WAAM,KAAK,CAAC,aAAa,EAAE,EAAA;;gCAApC,WAAS,SAA2B;gCAC1C,WAAW,CAAC,QAAM,CAAC,CAAC;;;;gCAEpB,aAAa,CAAC,GAAC,CAAC,CAAC;gCACjB,IAAI,CAAC,WAAW,EAAE,CAAC;;;;;qBAEtB,EAAE,eAAe,CAAC,CAAC;YACtB,CAAC;YACD,WAAW,EAAE;gBACX,IAAI,UAAU,EAAE,CAAC;oBACf,aAAa,CAAC,UAAU,CAAC,CAAC;gBAC5B,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;IAEH,gBAAC;AAAD,CAAC,AA3FD,CAA+B,iBAAO,GA2FrC;AA3FY,8BAAS"}
|
package/dist/cjs/api/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
exports.FlowApi = exports.IdwRwcApi = exports.IdwDbApi = exports.IdwInfoApi = exports.MigrationApi = exports.DomainRelationshipApi = exports.DomainApi = exports.ChannelApi = exports.MemoryApi = exports.SkillApi = void 0;
|
|
18
|
-
__exportStar(require("./errors"), exports);
|
|
19
|
-
var skillApi_1 = require("./skillApi");
|
|
20
|
-
Object.defineProperty(exports, "SkillApi", { enumerable: true, get: function () { return skillApi_1.SkillApi; } });
|
|
21
|
-
var memoryApi_1 = require("./memoryApi");
|
|
22
|
-
Object.defineProperty(exports, "MemoryApi", { enumerable: true, get: function () { return memoryApi_1.MemoryApi; } });
|
|
23
|
-
var channelApi_1 = require("./channelApi");
|
|
24
|
-
Object.defineProperty(exports, "ChannelApi", { enumerable: true, get: function () { return channelApi_1.ChannelApi; } });
|
|
25
|
-
var domainApi_1 = require("./domainApi");
|
|
26
|
-
Object.defineProperty(exports, "DomainApi", { enumerable: true, get: function () { return domainApi_1.DomainApi; } });
|
|
27
|
-
var domainRelationshipApi_1 = require("./domainRelationshipApi");
|
|
28
|
-
Object.defineProperty(exports, "DomainRelationshipApi", { enumerable: true, get: function () { return domainRelationshipApi_1.DomainRelationshipApi; } });
|
|
29
|
-
var migrationApi_1 = require("./migrationApi");
|
|
30
|
-
Object.defineProperty(exports, "MigrationApi", { enumerable: true, get: function () { return migrationApi_1.MigrationApi; } });
|
|
31
|
-
var idwInfoApi_1 = require("./idwInfoApi");
|
|
32
|
-
Object.defineProperty(exports, "IdwInfoApi", { enumerable: true, get: function () { return idwInfoApi_1.IdwInfoApi; } });
|
|
33
|
-
var idwDbApi_1 = require("./idwDbApi");
|
|
34
|
-
Object.defineProperty(exports, "IdwDbApi", { enumerable: true, get: function () { return idwDbApi_1.IdwDbApi; } });
|
|
35
|
-
var idwRwcApi_1 = require("./idwRwcApi");
|
|
36
|
-
Object.defineProperty(exports, "IdwRwcApi", { enumerable: true, get: function () { return idwRwcApi_1.IdwRwcApi; } });
|
|
37
|
-
var flowApi_1 = require("./flowApi");
|
|
38
|
-
Object.defineProperty(exports, "FlowApi", { enumerable: true, get: function () { return flowApi_1.FlowApi; } });
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MemoryApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var MemoryApi = (function (_super) {
|
|
21
|
-
__extends(MemoryApi, _super);
|
|
22
|
-
function MemoryApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
MemoryApi.prototype.getMemory = function (id) {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('memory'),
|
|
28
|
-
params: {
|
|
29
|
-
id: id,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
MemoryApi.prototype.getAllMemories = function () {
|
|
34
|
-
return this.providers.makeRequest({
|
|
35
|
-
route: this.buildRoute('memories'),
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
MemoryApi.prototype.deleteMemory = function (id) {
|
|
39
|
-
return this.providers.makeRequest({
|
|
40
|
-
route: this.buildRoute('memory'),
|
|
41
|
-
method: 'DELETE',
|
|
42
|
-
params: {
|
|
43
|
-
id: id,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
MemoryApi.prototype.deleteAllMemories = function () {
|
|
48
|
-
return this.providers.makeRequest({
|
|
49
|
-
route: this.buildRoute('memories'),
|
|
50
|
-
method: 'DELETE',
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
MemoryApi.prototype.updateMemory = function (id, data) {
|
|
54
|
-
return this.providers.makeRequest({
|
|
55
|
-
route: this.buildRoute('memory'),
|
|
56
|
-
method: 'PATCH',
|
|
57
|
-
data: data,
|
|
58
|
-
params: {
|
|
59
|
-
id: id,
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
MemoryApi.prototype.createMemory = function (data) {
|
|
64
|
-
return this.providers.makeRequest({
|
|
65
|
-
route: this.buildRoute('memory'),
|
|
66
|
-
method: 'POST',
|
|
67
|
-
data: data,
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
MemoryApi.prototype.getSuggestedMemory = function () {
|
|
71
|
-
return this.providers.makeRequest({
|
|
72
|
-
route: this.buildRoute('memories/suggested'),
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
return MemoryApi;
|
|
76
|
-
}(BaseApi_1.BaseApi));
|
|
77
|
-
exports.MemoryApi = MemoryApi;
|
|
78
|
-
//# sourceMappingURL=memoryApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memoryApi.js","sourceRoot":"","sources":["../../../src/api/memoryApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAA+B,6BAAO;IACpC,mBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAMD,6BAAS,GAAT,UAAU,EAAU;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,kCAAc,GAAd;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IAMD,gCAAY,GAAZ,UAAa,EAAU;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,qCAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAOD,gCAAY,GAAZ,UAAa,EAAU,EAAE,IAAsB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,OAAO;YACf,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,gCAAY,GAAZ,UAAa,IAAsB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAKD,sCAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IACH,gBAAC;AAAD,CAAC,AAvFD,CAA+B,iBAAO,GAuFrC;AAvFY,8BAAS"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MigrationApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var MigrationApi = (function (_super) {
|
|
21
|
-
__extends(MigrationApi, _super);
|
|
22
|
-
function MigrationApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
MigrationApi.prototype.migrationsStatus = function () {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('migration'),
|
|
28
|
-
method: 'GET',
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
MigrationApi.prototype.migrationsRun = function () {
|
|
32
|
-
return this.providers.makeRequest({
|
|
33
|
-
route: this.buildRoute('migration'),
|
|
34
|
-
method: 'POST',
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
MigrationApi.prototype.revertLatest = function () {
|
|
38
|
-
return this.providers.makeRequest({
|
|
39
|
-
route: this.buildRoute('migration'),
|
|
40
|
-
method: 'DELETE',
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
return MigrationApi;
|
|
44
|
-
}(BaseApi_1.BaseApi));
|
|
45
|
-
exports.MigrationApi = MigrationApi;
|
|
46
|
-
//# sourceMappingURL=migrationApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrationApi.js","sourceRoot":"","sources":["../../../src/api/migrationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAAkC,gCAAO;IACvC,sBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAMD,uCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,oCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAKD,mCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IACH,mBAAC;AAAD,CAAC,AAnCD,CAAkC,iBAAO,GAmCxC;AAnCY,oCAAY"}
|
package/dist/cjs/api/skillApi.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
28
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.SkillApi = void 0;
|
|
55
|
-
var base_1 = require("@or-sdk/base");
|
|
56
|
-
var BaseApi_1 = require("./BaseApi");
|
|
57
|
-
var errors_1 = require("./errors");
|
|
58
|
-
var SkillApi = (function (_super) {
|
|
59
|
-
__extends(SkillApi, _super);
|
|
60
|
-
function SkillApi(config) {
|
|
61
|
-
return _super.call(this, config) || this;
|
|
62
|
-
}
|
|
63
|
-
SkillApi.prototype.getSkill = function (id) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
65
|
-
var error_1;
|
|
66
|
-
return __generator(this, function (_a) {
|
|
67
|
-
switch (_a.label) {
|
|
68
|
-
case 0:
|
|
69
|
-
_a.trys.push([0, 2, , 3]);
|
|
70
|
-
return [4, this.providers.makeRequest({
|
|
71
|
-
route: this.buildRoute('skill'),
|
|
72
|
-
params: {
|
|
73
|
-
id: id,
|
|
74
|
-
},
|
|
75
|
-
})];
|
|
76
|
-
case 1: return [2, _a.sent()];
|
|
77
|
-
case 2:
|
|
78
|
-
error_1 = _a.sent();
|
|
79
|
-
throw this._parseError(error_1, { notFoundMessage: "No skills with id: '".concat(id, "'") });
|
|
80
|
-
case 3: return [2];
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
SkillApi.prototype.getAllSkills = function () {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
-
return __generator(this, function (_a) {
|
|
88
|
-
switch (_a.label) {
|
|
89
|
-
case 0: return [4, this.providers.makeRequest({
|
|
90
|
-
route: this.buildRoute('skills'),
|
|
91
|
-
})];
|
|
92
|
-
case 1: return [2, _a.sent()];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
SkillApi.prototype.deleteSkill = function (id) {
|
|
98
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
-
var error_2;
|
|
100
|
-
return __generator(this, function (_a) {
|
|
101
|
-
switch (_a.label) {
|
|
102
|
-
case 0:
|
|
103
|
-
_a.trys.push([0, 2, , 3]);
|
|
104
|
-
return [4, this.providers.makeRequest({
|
|
105
|
-
route: this.buildRoute('skill'),
|
|
106
|
-
method: 'DELETE',
|
|
107
|
-
params: {
|
|
108
|
-
id: id,
|
|
109
|
-
},
|
|
110
|
-
})];
|
|
111
|
-
case 1: return [2, _a.sent()];
|
|
112
|
-
case 2:
|
|
113
|
-
error_2 = _a.sent();
|
|
114
|
-
throw this._parseError(error_2, { notFoundMessage: "No skills with id: '".concat(id, "'") });
|
|
115
|
-
case 3: return [2];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
SkillApi.prototype.deleteAllSkills = function () {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
-
return __generator(this, function (_a) {
|
|
123
|
-
switch (_a.label) {
|
|
124
|
-
case 0: return [4, this.providers.makeRequest({
|
|
125
|
-
route: this.buildRoute('skills'),
|
|
126
|
-
method: 'DELETE',
|
|
127
|
-
})];
|
|
128
|
-
case 1: return [2, _a.sent()];
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
SkillApi.prototype.patchSkill = function (id, data) {
|
|
134
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
-
var error_3;
|
|
136
|
-
return __generator(this, function (_a) {
|
|
137
|
-
switch (_a.label) {
|
|
138
|
-
case 0:
|
|
139
|
-
_a.trys.push([0, 2, , 3]);
|
|
140
|
-
return [4, this.providers.makeRequest({
|
|
141
|
-
route: this.buildRoute('skill'),
|
|
142
|
-
method: 'PATCH',
|
|
143
|
-
data: data,
|
|
144
|
-
params: {
|
|
145
|
-
id: id,
|
|
146
|
-
},
|
|
147
|
-
})];
|
|
148
|
-
case 1: return [2, _a.sent()];
|
|
149
|
-
case 2:
|
|
150
|
-
error_3 = _a.sent();
|
|
151
|
-
throw this._parseError(error_3, { notFoundMessage: "No skills with id: '".concat(id, "'") });
|
|
152
|
-
case 3: return [2];
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
SkillApi.prototype.updateSkill = function (id, data) {
|
|
158
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
-
return __generator(this, function (_a) {
|
|
160
|
-
switch (_a.label) {
|
|
161
|
-
case 0: return [4, this.patchSkill(id, data)];
|
|
162
|
-
case 1: return [2, _a.sent()];
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
SkillApi.prototype.createSkill = function (data) {
|
|
168
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
-
return __generator(this, function (_a) {
|
|
170
|
-
switch (_a.label) {
|
|
171
|
-
case 0: return [4, this.providers.makeRequest({
|
|
172
|
-
route: this.buildRoute('skill'),
|
|
173
|
-
method: 'POST',
|
|
174
|
-
data: data,
|
|
175
|
-
})];
|
|
176
|
-
case 1: return [2, _a.sent()];
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
SkillApi.prototype.getSuggestedSkills = function () {
|
|
182
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
-
return __generator(this, function (_a) {
|
|
184
|
-
switch (_a.label) {
|
|
185
|
-
case 0: return [4, this.providers.makeRequest({
|
|
186
|
-
route: this.buildRoute('skills/suggested'),
|
|
187
|
-
})];
|
|
188
|
-
case 1: return [2, _a.sent()];
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
};
|
|
193
|
-
SkillApi.prototype._parseError = function (error, _a) {
|
|
194
|
-
var _b, _c;
|
|
195
|
-
var _d = _a === void 0 ? {} : _a, _e = _d.notFoundMessage, notFoundMessage = _e === void 0 ? 'Skill not found' : _e;
|
|
196
|
-
if (!(error instanceof Error))
|
|
197
|
-
throw error;
|
|
198
|
-
if (error instanceof base_1.AxiosError && ((_b = error.response) === null || _b === void 0 ? void 0 : _b.status) === 404) {
|
|
199
|
-
return new errors_1.SkillNotFoundError(notFoundMessage, { cause: error });
|
|
200
|
-
}
|
|
201
|
-
if (error.cause instanceof base_1.AxiosError && ((_c = error.cause.response) === null || _c === void 0 ? void 0 : _c.status) === 404) {
|
|
202
|
-
return new errors_1.SkillNotFoundError(notFoundMessage, { cause: error.cause });
|
|
203
|
-
}
|
|
204
|
-
if (error instanceof base_1.AxiosError) {
|
|
205
|
-
return new errors_1.SkillError((0, base_1.parseAxiosErrorMessage)(error), { cause: error });
|
|
206
|
-
}
|
|
207
|
-
return error;
|
|
208
|
-
};
|
|
209
|
-
return SkillApi;
|
|
210
|
-
}(BaseApi_1.BaseApi));
|
|
211
|
-
exports.SkillApi = SkillApi;
|
|
212
|
-
//# sourceMappingURL=skillApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skillApi.js","sourceRoot":"","sources":["../../../src/api/skillApi.ts"],"names":[],"mappings":"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"}
|