@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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** Mirrors [idw-api user.dto.ts](idw-api). */
|
|
2
|
+
|
|
3
|
+
export interface UserDetailsQuery {
|
|
4
|
+
skipContact?: string;
|
|
5
|
+
requestId?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface UserDetaulsResponse {
|
|
9
|
+
user: {
|
|
10
|
+
role: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
contactId: string;
|
|
13
|
+
email: string;
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
avatarUrl: string;
|
|
17
|
+
phoneNumber: string;
|
|
18
|
+
};
|
|
19
|
+
requestId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface QueryAccountId {
|
|
23
|
+
accountId?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CurrentProfile {
|
|
27
|
+
id: string;
|
|
28
|
+
username: string;
|
|
29
|
+
data?: {
|
|
30
|
+
profile?: {
|
|
31
|
+
icon?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
lastName?: string;
|
|
34
|
+
firstName?: string;
|
|
35
|
+
phoneNumber?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface UserInfoSettings {
|
|
41
|
+
idw_id: string;
|
|
42
|
+
instruction?: string;
|
|
43
|
+
avatar?: string;
|
|
44
|
+
allow_signup?: boolean;
|
|
45
|
+
signup?: { header: string; description: string };
|
|
46
|
+
welcome_screen?: {
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
placeholder: string;
|
|
50
|
+
suggestions: { text: string }[];
|
|
51
|
+
};
|
|
52
|
+
created_at?: string;
|
|
53
|
+
updated_at?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface UserInfoDto {
|
|
57
|
+
id: string;
|
|
58
|
+
accountId: string;
|
|
59
|
+
name: string;
|
|
60
|
+
slug: string;
|
|
61
|
+
isPrivate: boolean;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
|
+
settings?: UserInfoSettings;
|
|
65
|
+
}
|
package/dist/cjs/api/BaseApi.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseApi = void 0;
|
|
4
|
-
var providers_1 = require("@or-sdk/providers");
|
|
5
|
-
var constants_1 = require("../constants");
|
|
6
|
-
var BaseApi = (function () {
|
|
7
|
-
function BaseApi(_a) {
|
|
8
|
-
var providerAccountId = _a.providerAccountId, emUrl = _a.emUrl, token = _a.token, _b = _a.idwProviderNameSpace, idwProviderNameSpace = _b === void 0 ? constants_1.IDW_PROVIDER_NAME_SPACE : _b, discoveryUrl = _a.discoveryUrl;
|
|
9
|
-
this.providers = new providers_1.Providers({
|
|
10
|
-
token: token,
|
|
11
|
-
eventManagerUrl: emUrl,
|
|
12
|
-
providersAccountId: providerAccountId,
|
|
13
|
-
discoveryUrl: discoveryUrl,
|
|
14
|
-
});
|
|
15
|
-
this.idwProviderNameSpace = idwProviderNameSpace;
|
|
16
|
-
}
|
|
17
|
-
BaseApi.prototype.buildRoute = function (route) {
|
|
18
|
-
return "".concat(this.idwProviderNameSpace, "/").concat(route);
|
|
19
|
-
};
|
|
20
|
-
return BaseApi;
|
|
21
|
-
}());
|
|
22
|
-
exports.BaseApi = BaseApi;
|
|
23
|
-
//# sourceMappingURL=BaseApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseApi.js","sourceRoot":"","sources":["../../../src/api/BaseApi.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C,0CAAuD;AAGvD;IAIE,iBAAsB,EAMN;YALd,iBAAiB,uBAAA,EACjB,KAAK,WAAA,EACL,KAAK,WAAA,EACL,4BAA8C,EAA9C,oBAAoB,mBAAG,mCAAuB,KAAA,EAC9C,YAAY,kBAAA;QAEZ,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,CAAC;YAC7B,KAAK,OAAA;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;YACrC,YAAY,cAAA;SACb,CAAC,CAAC;QACH,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAES,4BAAU,GAApB,UAAqB,KAAa;QAChC,OAAO,UAAG,IAAI,CAAC,oBAAoB,cAAI,KAAK,CAAE,CAAC;IACjD,CAAC;IACH,cAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBqB,0BAAO"}
|
|
@@ -1,88 +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.ChannelApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var ChannelApi = (function (_super) {
|
|
21
|
-
__extends(ChannelApi, _super);
|
|
22
|
-
function ChannelApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
ChannelApi.prototype.getChannel = function (id) {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('channel'),
|
|
28
|
-
params: {
|
|
29
|
-
id: id,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
ChannelApi.prototype.getAllChannels = function () {
|
|
34
|
-
return this.providers.makeRequest({
|
|
35
|
-
route: this.buildRoute('channels'),
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
ChannelApi.prototype.deleteChannel = function (id) {
|
|
39
|
-
return this.providers.makeRequest({
|
|
40
|
-
route: this.buildRoute('channel'),
|
|
41
|
-
method: 'DELETE',
|
|
42
|
-
params: {
|
|
43
|
-
id: id,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
ChannelApi.prototype.deleteAllChannels = function () {
|
|
48
|
-
return this.providers.makeRequest({
|
|
49
|
-
route: this.buildRoute('channels'),
|
|
50
|
-
method: 'DELETE',
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
ChannelApi.prototype.updateChannel = function (id, data) {
|
|
54
|
-
return this.providers.makeRequest({
|
|
55
|
-
route: this.buildRoute('channel'),
|
|
56
|
-
method: 'PATCH',
|
|
57
|
-
data: data,
|
|
58
|
-
params: {
|
|
59
|
-
id: id,
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
ChannelApi.prototype.createChannel = function (data) {
|
|
64
|
-
return this.providers.makeRequest({
|
|
65
|
-
route: this.buildRoute('channel'),
|
|
66
|
-
method: 'POST',
|
|
67
|
-
data: data,
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
ChannelApi.prototype.setPrimaryChannelFlow = function (id, data) {
|
|
71
|
-
return this.providers.makeRequest({
|
|
72
|
-
route: this.buildRoute('channel/set-primary-flow'),
|
|
73
|
-
method: 'PATCH',
|
|
74
|
-
data: data,
|
|
75
|
-
params: {
|
|
76
|
-
id: id,
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
ChannelApi.prototype.getSuggestedChannels = function () {
|
|
81
|
-
return this.providers.makeRequest({
|
|
82
|
-
route: this.buildRoute('channels/suggested'),
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
return ChannelApi;
|
|
86
|
-
}(BaseApi_1.BaseApi));
|
|
87
|
-
exports.ChannelApi = ChannelApi;
|
|
88
|
-
//# sourceMappingURL=channelApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channelApi.js","sourceRoot":"","sources":["../../../src/api/channelApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AASA,qCAAoC;AAEpC;IAAg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;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAOD,0CAAqB,GAArB,UAAsB,EAAU,EAAE,IAA4B;QAC5D,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;YAClD,MAAM,EAAE,OAAO;YACf,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,yCAAoB,GAApB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AAxGD,CAAgC,iBAAO,GAwGtC;AAxGY,gCAAU"}
|
|
@@ -1,193 +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.DomainApi = void 0;
|
|
55
|
-
var base_1 = require("@or-sdk/base");
|
|
56
|
-
var BaseApi_1 = require("./BaseApi");
|
|
57
|
-
var errors_1 = require("./errors");
|
|
58
|
-
var DomainApi = (function (_super) {
|
|
59
|
-
__extends(DomainApi, _super);
|
|
60
|
-
function DomainApi(config) {
|
|
61
|
-
return _super.call(this, config) || this;
|
|
62
|
-
}
|
|
63
|
-
DomainApi.prototype.getDomain = function (slug) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
65
|
-
return __generator(this, function (_a) {
|
|
66
|
-
try {
|
|
67
|
-
return [2, this.providers.makeRequest({
|
|
68
|
-
route: this.buildRoute('domain'),
|
|
69
|
-
params: {
|
|
70
|
-
id: slug,
|
|
71
|
-
},
|
|
72
|
-
})];
|
|
73
|
-
}
|
|
74
|
-
catch (error) {
|
|
75
|
-
throw this._parseError(error, { notFoundMessage: "No domains with slug: '".concat(slug, "'") });
|
|
76
|
-
}
|
|
77
|
-
return [2];
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
DomainApi.prototype.getAllDomains = function () {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
return __generator(this, function (_a) {
|
|
84
|
-
switch (_a.label) {
|
|
85
|
-
case 0: return [4, this.providers.makeRequest({
|
|
86
|
-
route: this.buildRoute('domains'),
|
|
87
|
-
})];
|
|
88
|
-
case 1: return [2, _a.sent()];
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
DomainApi.prototype.deleteDomain = function (slug) {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
95
|
-
var error_1;
|
|
96
|
-
return __generator(this, function (_a) {
|
|
97
|
-
switch (_a.label) {
|
|
98
|
-
case 0:
|
|
99
|
-
_a.trys.push([0, 2, , 3]);
|
|
100
|
-
return [4, this.providers.makeRequest({
|
|
101
|
-
route: this.buildRoute('domain'),
|
|
102
|
-
method: 'DELETE',
|
|
103
|
-
params: {
|
|
104
|
-
id: slug,
|
|
105
|
-
},
|
|
106
|
-
})];
|
|
107
|
-
case 1: return [2, _a.sent()];
|
|
108
|
-
case 2:
|
|
109
|
-
error_1 = _a.sent();
|
|
110
|
-
throw this._parseError(error_1, { notFoundMessage: "No domains with slug: '".concat(slug, "'") });
|
|
111
|
-
case 3: return [2];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
DomainApi.prototype.deleteAllDomains = function () {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
switch (_a.label) {
|
|
120
|
-
case 0: return [4, this.providers.makeRequest({
|
|
121
|
-
route: this.buildRoute('domains'),
|
|
122
|
-
method: 'DELETE',
|
|
123
|
-
})];
|
|
124
|
-
case 1: return [2, _a.sent()];
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
};
|
|
129
|
-
DomainApi.prototype.patchDomain = function (slug, data) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
-
var error_2;
|
|
132
|
-
return __generator(this, function (_a) {
|
|
133
|
-
switch (_a.label) {
|
|
134
|
-
case 0:
|
|
135
|
-
_a.trys.push([0, 2, , 3]);
|
|
136
|
-
return [4, this.providers.makeRequest({
|
|
137
|
-
route: this.buildRoute('domain'),
|
|
138
|
-
method: 'PATCH',
|
|
139
|
-
data: data,
|
|
140
|
-
params: {
|
|
141
|
-
id: slug,
|
|
142
|
-
},
|
|
143
|
-
})];
|
|
144
|
-
case 1: return [2, _a.sent()];
|
|
145
|
-
case 2:
|
|
146
|
-
error_2 = _a.sent();
|
|
147
|
-
throw this._parseError(error_2, { notFoundMessage: "No domains with slug: '".concat(slug, "'") });
|
|
148
|
-
case 3: return [2];
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
DomainApi.prototype.updateDomain = function (slug, data) {
|
|
154
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
155
|
-
return __generator(this, function (_a) {
|
|
156
|
-
return [2, this.patchDomain(slug, data)];
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
DomainApi.prototype.createDomain = function (data) {
|
|
161
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
162
|
-
return __generator(this, function (_a) {
|
|
163
|
-
switch (_a.label) {
|
|
164
|
-
case 0: return [4, this.providers.makeRequest({
|
|
165
|
-
route: this.buildRoute('domain'),
|
|
166
|
-
method: 'POST',
|
|
167
|
-
data: data,
|
|
168
|
-
})];
|
|
169
|
-
case 1: return [2, _a.sent()];
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
DomainApi.prototype._parseError = function (error, _a) {
|
|
175
|
-
var _b, _c;
|
|
176
|
-
var _d = _a === void 0 ? {} : _a, _e = _d.notFoundMessage, notFoundMessage = _e === void 0 ? 'Domain not found' : _e;
|
|
177
|
-
if (!(error instanceof Error))
|
|
178
|
-
throw error;
|
|
179
|
-
if (error instanceof base_1.AxiosError && ((_b = error.response) === null || _b === void 0 ? void 0 : _b.status) === 404) {
|
|
180
|
-
return new errors_1.DomainNotFoundError(notFoundMessage, { cause: error });
|
|
181
|
-
}
|
|
182
|
-
if (error instanceof base_1.BaseError && error.cause instanceof base_1.AxiosError && ((_c = error.cause.response) === null || _c === void 0 ? void 0 : _c.status) === 404) {
|
|
183
|
-
return new errors_1.DomainNotFoundError(notFoundMessage, { cause: error.cause });
|
|
184
|
-
}
|
|
185
|
-
if (error instanceof base_1.AxiosError) {
|
|
186
|
-
return new errors_1.DomainError((0, base_1.parseAxiosErrorMessage)(error), { cause: error });
|
|
187
|
-
}
|
|
188
|
-
return error;
|
|
189
|
-
};
|
|
190
|
-
return DomainApi;
|
|
191
|
-
}(BaseApi_1.BaseApi));
|
|
192
|
-
exports.DomainApi = DomainApi;
|
|
193
|
-
//# sourceMappingURL=domainApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA6E;AAU7E,qCAAoC;AACpC,mCAA4D;AAE5D;IAA+B,6BAAO;IACpC,mBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAMY,6BAAS,GAAtB,UAAuB,IAAY;;;gBACjC,IAAI,CAAC;oBACH,WAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAqB;4BACpD,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;4BAChC,MAAM,EAAE;gCACN,EAAE,EAAE,IAAI;6BACT;yBACF,CAAC,EAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,EAAE,eAAe,EAAE,iCAA0B,IAAI,MAAG,EAAE,CAAC,CAAC;gBACxF,CAAC;;;;KACF;IAKY,iCAAa,GAA1B;;;;4BACS,WAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAA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
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.DomainRelationshipApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var DomainRelationshipApi = (function (_super) {
|
|
21
|
-
__extends(DomainRelationshipApi, _super);
|
|
22
|
-
function DomainRelationshipApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
DomainRelationshipApi.prototype.getDomainChannelList = function (slug) {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('domain/channels'),
|
|
28
|
-
method: 'GET',
|
|
29
|
-
params: {
|
|
30
|
-
id: slug,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
DomainRelationshipApi.prototype.getDomainSkillList = function (slug) {
|
|
35
|
-
return this.providers.makeRequest({
|
|
36
|
-
route: this.buildRoute('domain/skills'),
|
|
37
|
-
method: 'GET',
|
|
38
|
-
params: {
|
|
39
|
-
id: slug,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
DomainRelationshipApi.prototype.getDomainMemoryList = function (slug) {
|
|
44
|
-
return this.providers.makeRequest({
|
|
45
|
-
route: this.buildRoute('domain/memories'),
|
|
46
|
-
method: 'GET',
|
|
47
|
-
params: {
|
|
48
|
-
id: slug,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
DomainRelationshipApi.prototype.attachChannels = function (slug, data) {
|
|
53
|
-
return this.providers.makeRequest({
|
|
54
|
-
route: this.buildRoute('domain/channels'),
|
|
55
|
-
method: 'POST',
|
|
56
|
-
data: data,
|
|
57
|
-
params: {
|
|
58
|
-
id: slug,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
DomainRelationshipApi.prototype.attachSkills = function (slug, data) {
|
|
63
|
-
return this.providers.makeRequest({
|
|
64
|
-
route: this.buildRoute('domain/skills'),
|
|
65
|
-
method: 'POST',
|
|
66
|
-
data: data,
|
|
67
|
-
params: {
|
|
68
|
-
id: slug,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
DomainRelationshipApi.prototype.attachMemories = function (slug, data) {
|
|
73
|
-
return this.providers.makeRequest({
|
|
74
|
-
route: this.buildRoute('domain/memories'),
|
|
75
|
-
method: 'POST',
|
|
76
|
-
data: data,
|
|
77
|
-
params: {
|
|
78
|
-
id: slug,
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
DomainRelationshipApi.prototype.detachChannels = function (slug, data) {
|
|
83
|
-
return this.providers.makeRequest({
|
|
84
|
-
route: this.buildRoute('domain/channels'),
|
|
85
|
-
method: 'DELETE',
|
|
86
|
-
data: data,
|
|
87
|
-
params: {
|
|
88
|
-
id: slug,
|
|
89
|
-
},
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
DomainRelationshipApi.prototype.detachSkills = function (slug, data) {
|
|
93
|
-
return this.providers.makeRequest({
|
|
94
|
-
route: this.buildRoute('domain/skills'),
|
|
95
|
-
method: 'DELETE',
|
|
96
|
-
data: data,
|
|
97
|
-
params: {
|
|
98
|
-
id: slug,
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
DomainRelationshipApi.prototype.detachMemories = function (slug, data) {
|
|
103
|
-
return this.providers.makeRequest({
|
|
104
|
-
route: this.buildRoute('domain/memories'),
|
|
105
|
-
method: 'DELETE',
|
|
106
|
-
data: data,
|
|
107
|
-
params: {
|
|
108
|
-
id: slug,
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
return DomainRelationshipApi;
|
|
113
|
-
}(BaseApi_1.BaseApi));
|
|
114
|
-
exports.DomainRelationshipApi = DomainRelationshipApi;
|
|
115
|
-
//# sourceMappingURL=domainRelationshipApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainRelationshipApi.js","sourceRoot":"","sources":["../../../src/api/domainRelationshipApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAUA,qCAAoC;AAEpC;IAA2C,yCAAO;IAChD,+BAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAMD,oDAAoB,GAApB,UAAqB,IAAY;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAMD,kDAAkB,GAAlB,UAAmB,IAAY;QAC7B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;YACvC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAMD,mDAAmB,GAAn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AE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,4CAAY,GAAZ,UACE,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;YACvC,MAAM,EAAE,QAAQ;YAChB,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,8CAAc,GAAd,UACE,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,QAAQ;YAChB,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IACH,4BAAC;AAAD,CAAC,AA7JD,CAA2C,iBAAO,GA6JjD;AA7JY,sDAAqB"}
|
package/dist/cjs/api/errors.js
DELETED
|
@@ -1,52 +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.SkillNotFoundError = exports.SkillError = exports.DomainNotFoundError = exports.DomainError = void 0;
|
|
19
|
-
var base_1 = require("@or-sdk/base");
|
|
20
|
-
var DomainError = (function (_super) {
|
|
21
|
-
__extends(DomainError, _super);
|
|
22
|
-
function DomainError() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return DomainError;
|
|
26
|
-
}(base_1.BaseError));
|
|
27
|
-
exports.DomainError = DomainError;
|
|
28
|
-
var DomainNotFoundError = (function (_super) {
|
|
29
|
-
__extends(DomainNotFoundError, _super);
|
|
30
|
-
function DomainNotFoundError() {
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
-
}
|
|
33
|
-
return DomainNotFoundError;
|
|
34
|
-
}(DomainError));
|
|
35
|
-
exports.DomainNotFoundError = DomainNotFoundError;
|
|
36
|
-
var SkillError = (function (_super) {
|
|
37
|
-
__extends(SkillError, _super);
|
|
38
|
-
function SkillError() {
|
|
39
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
-
}
|
|
41
|
-
return SkillError;
|
|
42
|
-
}(base_1.BaseError));
|
|
43
|
-
exports.SkillError = SkillError;
|
|
44
|
-
var SkillNotFoundError = (function (_super) {
|
|
45
|
-
__extends(SkillNotFoundError, _super);
|
|
46
|
-
function SkillNotFoundError() {
|
|
47
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
-
}
|
|
49
|
-
return SkillNotFoundError;
|
|
50
|
-
}(SkillError));
|
|
51
|
-
exports.SkillNotFoundError = SkillNotFoundError;
|
|
52
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/api/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AAEzC;IAAiC,+BAAS;IAA1C;;IAA4C,CAAC;IAAD,kBAAC;AAAD,CAAC,AAA7C,CAAiC,gBAAS,GAAG;AAAhC,kCAAW;AACxB;IAAyC,uCAAW;IAApD;;IAAsD,CAAC;IAAD,0BAAC;AAAD,CAAC,AAAvD,CAAyC,WAAW,GAAG;AAA1C,kDAAmB;AAEhC;IAAgC,8BAAS;IAAzC;;IAA2C,CAAC;IAAD,iBAAC;AAAD,CAAC,AAA5C,CAAgC,gBAAS,GAAG;AAA/B,gCAAU;AACvB;IAAwC,sCAAU;IAAlD;;IAAoD,CAAC;IAAD,yBAAC;AAAD,CAAC,AAArD,CAAwC,UAAU,GAAG;AAAxC,gDAAkB"}
|
package/dist/cjs/api/flowApi.js
DELETED
|
@@ -1,43 +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.FlowApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var FlowApi = (function (_super) {
|
|
21
|
-
__extends(FlowApi, _super);
|
|
22
|
-
function FlowApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
FlowApi.prototype.getFlow = function (id, withRelatedEntities) {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('flow'),
|
|
28
|
-
params: {
|
|
29
|
-
id: id,
|
|
30
|
-
withRelatedEntities: withRelatedEntities,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
FlowApi.prototype.getFlows = function () {
|
|
35
|
-
return this.providers.makeRequest({
|
|
36
|
-
route: this.buildRoute('flows'),
|
|
37
|
-
method: 'GET',
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
return FlowApi;
|
|
41
|
-
}(BaseApi_1.BaseApi));
|
|
42
|
-
exports.FlowApi = FlowApi;
|
|
43
|
-
//# sourceMappingURL=flowApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flowApi.js","sourceRoot":"","sources":["../../../src/api/flowApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAA6B,2BAAO;IAClC,iBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAiBD,yBAAO,GAAP,UAAQ,EAAU,EAAE,mBAA6B;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE;gBACN,EAAE,IAAA;gBACF,mBAAmB,qBAAA;aACpB;SACF,CAAC,CAAC;IACL,CAAC;IAKD,0BAAQ,GAAR;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IACH,cAAC;AAAD,CAAC,AAvCD,CAA6B,iBAAO,GAuCnC;AAvCY,0BAAO"}
|
package/dist/cjs/api/idwDbApi.js
DELETED
|
@@ -1,40 +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.IdwDbApi = void 0;
|
|
19
|
-
var BaseApi_1 = require("./BaseApi");
|
|
20
|
-
var IdwDbApi = (function (_super) {
|
|
21
|
-
__extends(IdwDbApi, _super);
|
|
22
|
-
function IdwDbApi(config) {
|
|
23
|
-
return _super.call(this, config) || this;
|
|
24
|
-
}
|
|
25
|
-
IdwDbApi.prototype.isDbExist = function () {
|
|
26
|
-
return this.providers.makeRequest({
|
|
27
|
-
route: this.buildRoute('db'),
|
|
28
|
-
method: 'GET',
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
IdwDbApi.prototype.prepareDb = function () {
|
|
32
|
-
return this.providers.makeRequest({
|
|
33
|
-
route: this.buildRoute('db'),
|
|
34
|
-
method: 'POST',
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
return IdwDbApi;
|
|
38
|
-
}(BaseApi_1.BaseApi));
|
|
39
|
-
exports.IdwDbApi = IdwDbApi;
|
|
40
|
-
//# sourceMappingURL=idwDbApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idwDbApi.js","sourceRoot":"","sources":["../../../src/api/idwDbApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAA8B,4BAAO;IACnC,kBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAKD,4BAAS,GAAT;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC5B,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,4BAAS,GAAT;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC5B,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IACH,eAAC;AAAD,CAAC,AAxBD,CAA8B,iBAAO,GAwBpC;AAxBY,4BAAQ"}
|