@attlaz/client 1.96.0 → 1.98.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/dist/Catalog/Service/CatalogEndpoint.js +2 -1
- package/dist/Catalog/Service/CatalogProductEndpoint.js +3 -2
- package/dist/Client.d.ts +16 -12
- package/dist/Client.js +22 -12
- package/dist/{EnhanceData → DataEnrichment}/Service/GenerateContentEndpoint.js +3 -2
- package/dist/DataQuality/Model/QualityReportEntity.d.ts +31 -0
- package/dist/DataQuality/Model/QualityReportEntity.js +44 -0
- package/dist/DataQuality/Model/QualityReportProblem.d.ts +22 -0
- package/dist/DataQuality/Model/QualityReportProblem.js +35 -0
- package/dist/DataQuality/Model/QualityReportResult.d.ts +9 -0
- package/dist/DataQuality/Model/QualityReportResult.js +14 -0
- package/dist/DataQuality/Model/QualityScan.d.ts +19 -0
- package/dist/DataQuality/Model/QualityScan.js +28 -0
- package/dist/DataQuality/Service/QualityEndpoint.d.ts +57 -0
- package/dist/DataQuality/Service/QualityEndpoint.js +107 -21
- package/dist/FeedManagement/Service/CatalogFeedEndpoint.js +2 -1
- package/dist/Flow/Service/FlowEndpoint.js +6 -5
- package/dist/Flow/Service/FlowRunEndpoint.js +8 -7
- package/dist/Flow/Service/FlowRunRequestEndpoint.js +2 -1
- package/dist/Flow/Service/FlowRunStatsEndpoint.js +2 -1
- package/dist/Helper/LoadAllHelper.js +7 -1
- package/dist/Http/Data/Path.d.ts +11 -0
- package/dist/Http/Data/Path.js +31 -0
- package/dist/Http/HttpClient.d.ts +8 -1
- package/dist/Http/HttpClient.js +21 -1
- package/dist/Http/OAuthClientOptions.d.ts +2 -0
- package/dist/Http/OAuthClientOptions.js +3 -0
- package/dist/Http/Transport/OAuthClient.d.ts +7 -0
- package/dist/Http/Transport/OAuthClient.js +31 -4
- package/dist/Logging/Service/LogEndpoint.d.ts +5 -1
- package/dist/Logging/Service/LogEndpoint.js +14 -8
- package/dist/{Pulse → MarketPulse}/Model/Competitor.d.ts +4 -3
- package/dist/{Pulse → MarketPulse}/Model/Competitor.js +6 -5
- package/dist/{Pulse → MarketPulse}/Model/MatchedVendorProduct.d.ts +6 -0
- package/dist/{Pulse → MarketPulse}/Model/MatchedVendorProduct.js +12 -0
- package/dist/{Pulse → MarketPulse}/Model/ReviewMatch.d.ts +8 -0
- package/dist/{Pulse → MarketPulse}/Model/ReviewMatch.js +5 -0
- package/dist/{Pulse → MarketPulse}/Model/TopCompetitor.d.ts +1 -1
- package/dist/{Pulse → MarketPulse}/Model/TopCompetitor.js +2 -2
- package/dist/MarketPulse/Model/Vendor.d.ts +21 -0
- package/dist/MarketPulse/Model/Vendor.js +30 -0
- package/dist/MarketPulse/Service/CompetitorEndpoint.d.ts +37 -0
- package/dist/MarketPulse/Service/CompetitorEndpoint.js +49 -0
- package/dist/{Pulse → MarketPulse}/Service/CrawlJobEndpoint.d.ts +1 -0
- package/dist/{Pulse → MarketPulse}/Service/CrawlJobEndpoint.js +8 -6
- package/dist/{Pulse → MarketPulse}/Service/IndexJobEndpoint.js +5 -4
- package/dist/{Pulse → MarketPulse}/Service/PriceAlertEndpoint.js +8 -7
- package/dist/{Pulse → MarketPulse}/Service/PricingEndpoint.js +9 -8
- package/dist/{Pulse → MarketPulse}/Service/ProductGroupEndpoint.js +4 -3
- package/dist/{Pulse → MarketPulse}/Service/ProductMatchEndpoint.js +6 -5
- package/dist/{Pulse → MarketPulse}/Service/ProductMatchJobEndpoint.js +5 -4
- package/dist/{Pulse → MarketPulse}/Service/PulseCatalogProductEndpoint.js +4 -3
- package/dist/{Pulse → MarketPulse}/Service/PulseStatisticsEndpoint.js +5 -4
- package/dist/MarketPulse/Service/VendorEndpoint.d.ts +26 -0
- package/dist/MarketPulse/Service/VendorEndpoint.js +33 -0
- package/dist/{Pulse → MarketPulse}/Service/VendorProductEndpoint.js +15 -7
- package/dist/Model/Component/Component.d.ts +18 -0
- package/dist/Model/Component/Component.js +16 -0
- package/dist/Model/Component/ComponentKind.d.ts +8 -0
- package/dist/Model/Component/ComponentKind.js +18 -0
- package/dist/Model/Component/ComponentStatus.d.ts +31 -0
- package/dist/Model/Component/ComponentStatus.js +31 -0
- package/dist/Model/Component/ComponentVersion.d.ts +16 -0
- package/dist/Model/Component/ComponentVersion.js +15 -0
- package/dist/Service/AccessTokenEndpoint.js +3 -2
- package/dist/Service/AdapterConnectionEndpoint.js +9 -8
- package/dist/Service/AdapterEndpoint.js +3 -2
- package/dist/Service/ChannelEndpoint.js +5 -4
- package/dist/Service/CodeDeployEndpoint.js +5 -4
- package/dist/Service/CodeSourceStrategiesEndpoint.js +3 -2
- package/dist/Service/CollectionsEndpoint.js +5 -4
- package/dist/Service/CommandExecutionEndpoint.js +2 -1
- package/dist/Service/ComponentEndpoint.d.ts +26 -0
- package/dist/Service/ComponentEndpoint.js +77 -0
- package/dist/Service/ConfigEndpoint.d.ts +6 -1
- package/dist/Service/ConfigEndpoint.js +9 -3
- package/dist/Service/ConfigurationEndpoint.js +5 -4
- package/dist/Service/HealthAlertEndpoint.js +3 -2
- package/dist/Service/PlatformEndpoint.js +3 -2
- package/dist/Service/PlatformLanguageEndpoint.js +2 -1
- package/dist/Service/ProjectEndpoint.js +3 -2
- package/dist/Service/ProjectEnvironmentEndpoint.js +3 -2
- package/dist/Service/ProviderTokenEndpoint.js +4 -3
- package/dist/Service/RunnerPoolEndpoint.js +5 -4
- package/dist/Service/SourcesAccountEndpoint.js +6 -5
- package/dist/Service/StorageEndpoint.js +8 -7
- package/dist/Service/SubscriberEndpoint.js +4 -3
- package/dist/Service/TriggerEndpoint.js +5 -4
- package/dist/Service/UserActionEndpoint.js +4 -3
- package/dist/Service/UserEndpoint.js +3 -2
- package/dist/Service/WorkspaceEndpoint.js +2 -1
- package/dist/Service/WorkspaceMemberEndpoint.js +5 -4
- package/dist/index.d.ts +55 -46
- package/dist/index.js +42 -33
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -2
- package/dist/Pulse/Model/Vendor.d.ts +0 -12
- package/dist/Pulse/Model/Vendor.js +0 -18
- package/dist/Pulse/Service/CompetitorEndpoint.d.ts +0 -15
- package/dist/Pulse/Service/CompetitorEndpoint.js +0 -23
- /package/dist/{EnhanceData → DataEnrichment}/Model/GenerateContentBatch.d.ts +0 -0
- /package/dist/{EnhanceData → DataEnrichment}/Model/GenerateContentBatch.js +0 -0
- /package/dist/{EnhanceData → DataEnrichment}/Model/GenerateContentBatchData.d.ts +0 -0
- /package/dist/{EnhanceData → DataEnrichment}/Model/GenerateContentBatchData.js +0 -0
- /package/dist/{EnhanceData → DataEnrichment}/Service/GenerateContentEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/CatalogProductWithMatches.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/CatalogProductWithMatches.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/CompetingVendorProduct.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/CompetingVendorProduct.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/CrawlJob.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/CrawlJob.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/IndexJob.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/IndexJob.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MarketSummaryEntry.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MarketSummaryEntry.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MatchHistory.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MatchHistory.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MatchHistoryBucket.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MatchHistoryBucket.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MatchHistoryInterval.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/MatchHistoryInterval.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceAlertConfig.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceAlertConfig.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceAlertConfigData.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceAlertConfigData.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceAlertEvent.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceAlertEvent.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceIndexSnapshotEntry.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceIndexSnapshotEntry.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceSuggestion.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PriceSuggestion.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PricingRule.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PricingRule.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PricingRuleData.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PricingRuleData.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductGroup.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductGroup.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductGroupData.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductGroupData.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductMatch.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductMatch.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductMatchJob.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductMatchJob.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductSegmentType.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductSegmentType.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductsSegment.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ProductsSegment.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PulseCatalogProductFilterOptions.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PulseCatalogProductFilterOptions.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PulseCatalogProductFilters.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/PulseCatalogProductFilters.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ReviewMatchFilters.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/ReviewMatchFilters.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/VendorProduct.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/VendorProduct.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/VendorProductPriceHistoryEntry.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/VendorProductPriceHistoryEntry.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/VendorStatus.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Model/VendorStatus.js +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/IndexJobEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/PriceAlertEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/PricingEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/ProductGroupEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/ProductMatchEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/ProductMatchJobEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/PulseCatalogProductEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/PulseStatisticsEndpoint.d.ts +0 -0
- /package/dist/{Pulse → MarketPulse}/Service/VendorProductEndpoint.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { path } from '../Http/Data/Path.js';
|
|
1
2
|
import { Trigger } from '../Model/Trigger/Trigger.js';
|
|
2
3
|
import { Utils } from '../Utils.js';
|
|
3
4
|
import { QueryString } from '../Http/Data/QueryString.js';
|
|
@@ -5,7 +6,7 @@ import { Endpoint } from './Endpoint.js';
|
|
|
5
6
|
export class TriggerEndpoint extends Endpoint {
|
|
6
7
|
async getByFlow(flowId, projectEnvironmentId = null, pagination = null) {
|
|
7
8
|
try {
|
|
8
|
-
const queryString = new QueryString('/triggers/rfr
|
|
9
|
+
const queryString = new QueryString(path('/triggers/rfr/:flowId', { flowId }));
|
|
9
10
|
queryString.addPagination(pagination);
|
|
10
11
|
let parameters = null;
|
|
11
12
|
if (!Utils.isNullOrUndefined(projectEnvironmentId)) {
|
|
@@ -23,7 +24,7 @@ export class TriggerEndpoint extends Endpoint {
|
|
|
23
24
|
}
|
|
24
25
|
async getByCodeSource(codeSourceId, pagination = null) {
|
|
25
26
|
try {
|
|
26
|
-
const queryString = new QueryString('/triggers/csd
|
|
27
|
+
const queryString = new QueryString(path('/triggers/csd/:codeSourceId', { codeSourceId }));
|
|
27
28
|
queryString.addPagination(pagination);
|
|
28
29
|
const rawTriggers = await this.requestCollection(queryString, Trigger.parse, null);
|
|
29
30
|
return rawTriggers;
|
|
@@ -37,7 +38,7 @@ export class TriggerEndpoint extends Endpoint {
|
|
|
37
38
|
}
|
|
38
39
|
async getById(id) {
|
|
39
40
|
try {
|
|
40
|
-
const result = await this.requestObject('/triggers
|
|
41
|
+
const result = await this.requestObject(path('/triggers/:id', { id }), null, Trigger.parse);
|
|
41
42
|
return result.getData();
|
|
42
43
|
}
|
|
43
44
|
catch (error) {
|
|
@@ -49,7 +50,7 @@ export class TriggerEndpoint extends Endpoint {
|
|
|
49
50
|
}
|
|
50
51
|
async save(trigger) {
|
|
51
52
|
try {
|
|
52
|
-
const url = '/flows/'
|
|
53
|
+
const url = path('/flows/:flowId/triggers', { flowId: trigger.flowId });
|
|
53
54
|
const result = await this.requestObject(url, trigger, Trigger.parse, 'POST');
|
|
54
55
|
const createdTrigger = result.getData();
|
|
55
56
|
if (createdTrigger === null) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { path } from '../Http/Data/Path.js';
|
|
1
2
|
import { Utils } from '../Utils.js';
|
|
2
3
|
import { UserAction } from '../Model/User/UserAction.js';
|
|
3
4
|
import { UserSummary } from '../Model/User/UserSummary.js';
|
|
@@ -8,7 +9,7 @@ import { Endpoint } from './Endpoint.js';
|
|
|
8
9
|
export class UserActionEndpoint extends Endpoint {
|
|
9
10
|
async getWorkspaceMemberActions(workspaceId, memberId, pagination = null) {
|
|
10
11
|
try {
|
|
11
|
-
const queryString = new QueryString('/workspaces
|
|
12
|
+
const queryString = new QueryString(path('/workspaces/:workspaceId/members/:memberId/actions', { workspaceId, memberId }));
|
|
12
13
|
queryString.addPagination(pagination);
|
|
13
14
|
return await this.requestCollection(queryString, UserActionEndpoint.parse, null, 'GET');
|
|
14
15
|
}
|
|
@@ -21,7 +22,7 @@ export class UserActionEndpoint extends Endpoint {
|
|
|
21
22
|
}
|
|
22
23
|
async getUserActions(userId, pagination = null) {
|
|
23
24
|
try {
|
|
24
|
-
const queryString = new QueryString('/users/'
|
|
25
|
+
const queryString = new QueryString(path('/users/:userId/actions', { userId }));
|
|
25
26
|
queryString.addPagination(pagination);
|
|
26
27
|
return await this.requestCollection(queryString, UserActionEndpoint.parse, null, 'GET');
|
|
27
28
|
}
|
|
@@ -34,7 +35,7 @@ export class UserActionEndpoint extends Endpoint {
|
|
|
34
35
|
}
|
|
35
36
|
async getByResource(resourceId, resourceType, pagination = null) {
|
|
36
37
|
try {
|
|
37
|
-
const queryString = new QueryString('/resources/'
|
|
38
|
+
const queryString = new QueryString(path('/resources/:resourceType/:resourceId/actions', { resourceType, resourceId }));
|
|
38
39
|
queryString.addPagination(pagination);
|
|
39
40
|
return await this.requestCollection(queryString, UserActionEndpoint.parse, null, 'GET');
|
|
40
41
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { path } from '../Http/Data/Path.js';
|
|
1
2
|
import { UserAuthProvider } from '../Model/User/UserAuthProvider.js';
|
|
2
3
|
import { User } from '../Model/User/User.js';
|
|
3
4
|
import { UserSummary } from '../Model/User/UserSummary.js';
|
|
@@ -63,7 +64,7 @@ export class UserEndpoint extends Endpoint {
|
|
|
63
64
|
}
|
|
64
65
|
async update(user) {
|
|
65
66
|
try {
|
|
66
|
-
const url = '/users
|
|
67
|
+
const url = path('/users/:id', { id: user.id });
|
|
67
68
|
const result = await this.requestObject(url, user, User.parse, 'POST');
|
|
68
69
|
const updatedUser = result.getData();
|
|
69
70
|
if (updatedUser === null) {
|
|
@@ -116,7 +117,7 @@ export class UserEndpoint extends Endpoint {
|
|
|
116
117
|
}
|
|
117
118
|
async resetPassword(code, password) {
|
|
118
119
|
try {
|
|
119
|
-
const url = '/users/resetpassword
|
|
120
|
+
const url = path('/users/resetpassword/:code', { code });
|
|
120
121
|
const parser = (raw) => ({ updated: raw.updated });
|
|
121
122
|
const result = await this.requestObject(url, { password }, parser, 'POST', false);
|
|
122
123
|
const re = result.getData();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { path } from '../Http/Data/Path.js';
|
|
1
2
|
import { Endpoint } from './Endpoint.js';
|
|
2
3
|
import { Workspace } from '../Model/Workspace/Workspace.js';
|
|
3
4
|
import { QueryString } from '../Http/Data/QueryString.js';
|
|
@@ -18,7 +19,7 @@ export class WorkspaceEndpoint extends Endpoint {
|
|
|
18
19
|
}
|
|
19
20
|
async getById(workspaceId) {
|
|
20
21
|
try {
|
|
21
|
-
const url = '/workspaces
|
|
22
|
+
const url = path('/workspaces/:workspaceId', { workspaceId });
|
|
22
23
|
const result = await this.requestObject(url, null, Workspace.parse);
|
|
23
24
|
return result.getData();
|
|
24
25
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { path } from '../Http/Data/Path.js';
|
|
1
2
|
import { QueryString } from '../Http/Data/QueryString.js';
|
|
2
3
|
import { WorkspaceMember } from '../Model/Workspace/WorkspaceMember.js';
|
|
3
4
|
import { WorkspaceMemberInvite2 } from '../Model/Workspace/WorkspaceMemberInvite2.js';
|
|
@@ -5,13 +6,13 @@ import { WorkspaceMemberRole } from '../Model/Workspace/WorkspaceMemberRole.js';
|
|
|
5
6
|
import { Endpoint } from './Endpoint.js';
|
|
6
7
|
export class WorkspaceMemberEndpoint extends Endpoint {
|
|
7
8
|
async getByWorkspace(workspaceId, pagination = null) {
|
|
8
|
-
const queryString = new QueryString('workspaces/'
|
|
9
|
+
const queryString = new QueryString(path('workspaces/:workspaceId/members', { workspaceId }));
|
|
9
10
|
queryString.addPagination(pagination);
|
|
10
11
|
const result = await this.requestCollection(queryString, WorkspaceMember.parse);
|
|
11
12
|
return result;
|
|
12
13
|
}
|
|
13
14
|
async invite(workspaceId, invites) {
|
|
14
|
-
const cmd = '/workspaces/'
|
|
15
|
+
const cmd = path('/workspaces/:workspaceId/invites', { workspaceId });
|
|
15
16
|
const rawInvites = [];
|
|
16
17
|
for (const invite of invites) {
|
|
17
18
|
rawInvites.push({ email: invite.email, role: invite.role.toString() });
|
|
@@ -48,7 +49,7 @@ export class WorkspaceMemberEndpoint extends Endpoint {
|
|
|
48
49
|
return null;
|
|
49
50
|
}
|
|
50
51
|
async getRoles(workspaceId) {
|
|
51
|
-
const cmd = '/workspaces/'
|
|
52
|
+
const cmd = path('/workspaces/:workspaceId/member-roles', { workspaceId });
|
|
52
53
|
const parser = (raw) => {
|
|
53
54
|
const role = new WorkspaceMemberRole();
|
|
54
55
|
role.id = raw.id;
|
|
@@ -59,7 +60,7 @@ export class WorkspaceMemberEndpoint extends Endpoint {
|
|
|
59
60
|
}
|
|
60
61
|
async saveMember(member) {
|
|
61
62
|
try {
|
|
62
|
-
const url = '/workspaces/'
|
|
63
|
+
const url = path('/workspaces/:workspaceId/members/:id', { workspaceId: member.workspaceId, id: member.id });
|
|
63
64
|
const result = await this.requestObject(url, member, WorkspaceMember.parse, 'POST');
|
|
64
65
|
const updatedWorkspaceMember = result.getData();
|
|
65
66
|
if (updatedWorkspaceMember === null) {
|
package/dist/index.d.ts
CHANGED
|
@@ -81,61 +81,66 @@ export { ObjectResult } from './Model/Result/ObjectResult.js';
|
|
|
81
81
|
export { ResultError } from './Model/Result/ResultError.js';
|
|
82
82
|
export { StorageInformation } from './Model/Storage/StorageInformation.js';
|
|
83
83
|
export { StorageType } from './Model/Storage/StorageType.js';
|
|
84
|
-
export { VendorProduct } from './
|
|
85
|
-
export { VendorProductEndpoint } from './
|
|
86
|
-
export { CrawlJob, CrawlJobStatus } from './
|
|
87
|
-
export { CrawlJobEndpoint } from './
|
|
88
|
-
export { VendorProductPriceHistoryEntry } from './
|
|
84
|
+
export { VendorProduct } from './MarketPulse/Model/VendorProduct.js';
|
|
85
|
+
export { VendorProductEndpoint } from './MarketPulse/Service/VendorProductEndpoint.js';
|
|
86
|
+
export { CrawlJob, CrawlJobStatus } from './MarketPulse/Model/CrawlJob.js';
|
|
87
|
+
export { CrawlJobEndpoint } from './MarketPulse/Service/CrawlJobEndpoint.js';
|
|
88
|
+
export { VendorProductPriceHistoryEntry } from './MarketPulse/Model/VendorProductPriceHistoryEntry.js';
|
|
89
89
|
export { Catalog } from './Catalog/Model/Catalog.js';
|
|
90
90
|
export { CatalogId } from './Catalog/Model/CatalogId.js';
|
|
91
91
|
export { CatalogEndpoint } from './Catalog/Service/CatalogEndpoint.js';
|
|
92
|
-
export { CompetingVendorProduct } from './
|
|
93
|
-
export { ProductMatchJob, ProductMatchJobStatus } from './
|
|
94
|
-
export { ProductMatchJobEndpoint } from './
|
|
95
|
-
export { IndexJob, IndexJobStatus } from './
|
|
96
|
-
export { VendorStatus, RunningMatch } from './
|
|
97
|
-
export { IndexJobEndpoint } from './
|
|
98
|
-
export { Vendor } from './
|
|
99
|
-
export { Competitor } from './
|
|
100
|
-
export { ProductMatch, ProductMatchStatus } from './
|
|
101
|
-
export { MatchedVendorProduct } from './
|
|
102
|
-
export { CatalogProductWithMatches, PriceProposal } from './
|
|
103
|
-
export { ReviewMatch, ReviewProduct, ReviewCompetitorProduct } from './
|
|
104
|
-
export { TopCompetitor } from './
|
|
105
|
-
export { PriceIndexSnapshotEntry } from './
|
|
106
|
-
export { MatchHistory } from './
|
|
107
|
-
export { MatchHistoryBucket } from './
|
|
108
|
-
export { MatchHistoryInterval } from './
|
|
109
|
-
export { ReviewMatchFilters } from './
|
|
110
|
-
export { ProductMatchEndpoint } from './
|
|
111
|
-
export { PulseCatalogProductFilterOptions } from './
|
|
112
|
-
export { PulseCatalogProductFilters } from './
|
|
113
|
-
export { PulseCatalogProductEndpoint } from './
|
|
114
|
-
export { PriceAlertConfig } from './
|
|
115
|
-
export { PriceAlertEvent } from './
|
|
116
|
-
export { PriceAlertConfigData } from './
|
|
117
|
-
export { PriceAlertEndpoint } from './
|
|
118
|
-
export { PricingRule } from './
|
|
119
|
-
export { PriceSuggestion, PriceSuggestionStatus } from './
|
|
120
|
-
export { PricingRuleData } from './
|
|
121
|
-
export { PricingEndpoint } from './
|
|
122
|
-
export { ProductGroup, ProductGroupType } from './
|
|
123
|
-
export { ProductGroupData } from './
|
|
124
|
-
export { ProductGroupEndpoint } from './
|
|
92
|
+
export { CompetingVendorProduct } from './MarketPulse/Model/CompetingVendorProduct.js';
|
|
93
|
+
export { ProductMatchJob, ProductMatchJobStatus } from './MarketPulse/Model/ProductMatchJob.js';
|
|
94
|
+
export { ProductMatchJobEndpoint } from './MarketPulse/Service/ProductMatchJobEndpoint.js';
|
|
95
|
+
export { IndexJob, IndexJobStatus } from './MarketPulse/Model/IndexJob.js';
|
|
96
|
+
export { VendorStatus, RunningMatch } from './MarketPulse/Model/VendorStatus.js';
|
|
97
|
+
export { IndexJobEndpoint } from './MarketPulse/Service/IndexJobEndpoint.js';
|
|
98
|
+
export { Vendor } from './MarketPulse/Model/Vendor.js';
|
|
99
|
+
export { Competitor } from './MarketPulse/Model/Competitor.js';
|
|
100
|
+
export { ProductMatch, ProductMatchStatus } from './MarketPulse/Model/ProductMatch.js';
|
|
101
|
+
export { MatchedVendorProduct } from './MarketPulse/Model/MatchedVendorProduct.js';
|
|
102
|
+
export { CatalogProductWithMatches, PriceProposal } from './MarketPulse/Model/CatalogProductWithMatches.js';
|
|
103
|
+
export { ReviewMatch, ReviewProduct, ReviewCompetitorProduct } from './MarketPulse/Model/ReviewMatch.js';
|
|
104
|
+
export { TopCompetitor } from './MarketPulse/Model/TopCompetitor.js';
|
|
105
|
+
export { PriceIndexSnapshotEntry } from './MarketPulse/Model/PriceIndexSnapshotEntry.js';
|
|
106
|
+
export { MatchHistory } from './MarketPulse/Model/MatchHistory.js';
|
|
107
|
+
export { MatchHistoryBucket } from './MarketPulse/Model/MatchHistoryBucket.js';
|
|
108
|
+
export { MatchHistoryInterval } from './MarketPulse/Model/MatchHistoryInterval.js';
|
|
109
|
+
export { ReviewMatchFilters } from './MarketPulse/Model/ReviewMatchFilters.js';
|
|
110
|
+
export { ProductMatchEndpoint } from './MarketPulse/Service/ProductMatchEndpoint.js';
|
|
111
|
+
export { PulseCatalogProductFilterOptions } from './MarketPulse/Model/PulseCatalogProductFilterOptions.js';
|
|
112
|
+
export { PulseCatalogProductFilters } from './MarketPulse/Model/PulseCatalogProductFilters.js';
|
|
113
|
+
export { PulseCatalogProductEndpoint } from './MarketPulse/Service/PulseCatalogProductEndpoint.js';
|
|
114
|
+
export { PriceAlertConfig } from './MarketPulse/Model/PriceAlertConfig.js';
|
|
115
|
+
export { PriceAlertEvent } from './MarketPulse/Model/PriceAlertEvent.js';
|
|
116
|
+
export { PriceAlertConfigData } from './MarketPulse/Model/PriceAlertConfigData.js';
|
|
117
|
+
export { PriceAlertEndpoint } from './MarketPulse/Service/PriceAlertEndpoint.js';
|
|
118
|
+
export { PricingRule } from './MarketPulse/Model/PricingRule.js';
|
|
119
|
+
export { PriceSuggestion, PriceSuggestionStatus } from './MarketPulse/Model/PriceSuggestion.js';
|
|
120
|
+
export { PricingRuleData } from './MarketPulse/Model/PricingRuleData.js';
|
|
121
|
+
export { PricingEndpoint } from './MarketPulse/Service/PricingEndpoint.js';
|
|
122
|
+
export { ProductGroup, ProductGroupType } from './MarketPulse/Model/ProductGroup.js';
|
|
123
|
+
export { ProductGroupData } from './MarketPulse/Model/ProductGroupData.js';
|
|
124
|
+
export { ProductGroupEndpoint } from './MarketPulse/Service/ProductGroupEndpoint.js';
|
|
125
125
|
export { CatalogProduct } from './Catalog/Model/CatalogProduct.js';
|
|
126
126
|
export { CatalogProductEndpoint } from './Catalog/Service/CatalogProductEndpoint.js';
|
|
127
|
-
export { GenerateContentBatch } from './
|
|
128
|
-
export { GenerateContentBatchData } from './
|
|
129
|
-
export { GenerateContentEndpoint } from './
|
|
130
|
-
export { CompetitorEndpoint } from './
|
|
131
|
-
export {
|
|
132
|
-
export {
|
|
133
|
-
export {
|
|
134
|
-
export {
|
|
127
|
+
export { GenerateContentBatch } from './DataEnrichment/Model/GenerateContentBatch.js';
|
|
128
|
+
export { GenerateContentBatchData } from './DataEnrichment/Model/GenerateContentBatchData.js';
|
|
129
|
+
export { GenerateContentEndpoint } from './DataEnrichment/Service/GenerateContentEndpoint.js';
|
|
130
|
+
export { CompetitorEndpoint, CompetitorLink } from './MarketPulse/Service/CompetitorEndpoint.js';
|
|
131
|
+
export { VendorEndpoint } from './MarketPulse/Service/VendorEndpoint.js';
|
|
132
|
+
export { MarketSummaryEntry } from './MarketPulse/Model/MarketSummaryEntry.js';
|
|
133
|
+
export { ProductSegmentType } from './MarketPulse/Model/ProductSegmentType.js';
|
|
134
|
+
export { ProductsSegment } from './MarketPulse/Model/ProductsSegment.js';
|
|
135
|
+
export { PulseStatisticsEndpoint } from './MarketPulse/Service/PulseStatisticsEndpoint.js';
|
|
135
136
|
export { QualityDataset } from './DataQuality/Model/QualityDataset.js';
|
|
136
137
|
export { QualityEntity } from './DataQuality/Model/QualityEntity.js';
|
|
137
138
|
export { QualityProblem } from './DataQuality/Model/QualityProblem.js';
|
|
138
139
|
export { QualityProblemDefinition } from './DataQuality/Model/QualityProblemDefinition.js';
|
|
140
|
+
export { QualityScan } from './DataQuality/Model/QualityScan.js';
|
|
141
|
+
export { QualityReportEntity } from './DataQuality/Model/QualityReportEntity.js';
|
|
142
|
+
export { QualityReportProblem } from './DataQuality/Model/QualityReportProblem.js';
|
|
143
|
+
export { QualityReportResult } from './DataQuality/Model/QualityReportResult.js';
|
|
139
144
|
export { QualityProblemEvent } from './DataQuality/Model/QualityProblemEvent.js';
|
|
140
145
|
export { QualityEntityProblemSuppression } from './DataQuality/Model/QualityEntityProblemSuppression.js';
|
|
141
146
|
export { QualityCodeOption } from './DataQuality/Model/QualityCodeOption.js';
|
|
@@ -204,6 +209,10 @@ export type { UserActionFilter } from './Model/User/UserActionFilter.js';
|
|
|
204
209
|
export { UserSummary } from './Model/User/UserSummary.js';
|
|
205
210
|
export type { UserSummaryType } from './Model/User/UserSummary.js';
|
|
206
211
|
export { RunnerImage } from './Model/Runner/RunnerImage.js';
|
|
212
|
+
export { Component } from './Model/Component/Component.js';
|
|
213
|
+
export { ComponentKind } from './Model/Component/ComponentKind.js';
|
|
214
|
+
export { ComponentStatus } from './Model/Component/ComponentStatus.js';
|
|
215
|
+
export { ComponentVersion } from './Model/Component/ComponentVersion.js';
|
|
207
216
|
export { CommandExecutionHistory } from './Model/Command/CommandExecutionHistory.js';
|
|
208
217
|
export { CommandExecutionStatus } from './Model/Command/CommandExecutionStatus.js';
|
|
209
218
|
export { CommandExecutionFilter } from './Model/Command/CommandExecutionFilter.js';
|
package/dist/index.js
CHANGED
|
@@ -67,48 +67,53 @@ export { ObjectResult } from './Model/Result/ObjectResult.js';
|
|
|
67
67
|
export { ResultError } from './Model/Result/ResultError.js';
|
|
68
68
|
export { StorageInformation } from './Model/Storage/StorageInformation.js';
|
|
69
69
|
export { StorageType } from './Model/Storage/StorageType.js';
|
|
70
|
-
export { VendorProduct } from './
|
|
71
|
-
export { VendorProductEndpoint } from './
|
|
72
|
-
export { CrawlJob } from './
|
|
73
|
-
export { CrawlJobEndpoint } from './
|
|
74
|
-
export { VendorProductPriceHistoryEntry } from './
|
|
70
|
+
export { VendorProduct } from './MarketPulse/Model/VendorProduct.js';
|
|
71
|
+
export { VendorProductEndpoint } from './MarketPulse/Service/VendorProductEndpoint.js';
|
|
72
|
+
export { CrawlJob } from './MarketPulse/Model/CrawlJob.js';
|
|
73
|
+
export { CrawlJobEndpoint } from './MarketPulse/Service/CrawlJobEndpoint.js';
|
|
74
|
+
export { VendorProductPriceHistoryEntry } from './MarketPulse/Model/VendorProductPriceHistoryEntry.js';
|
|
75
75
|
export { Catalog } from './Catalog/Model/Catalog.js';
|
|
76
76
|
export { CatalogId } from './Catalog/Model/CatalogId.js';
|
|
77
77
|
export { CatalogEndpoint } from './Catalog/Service/CatalogEndpoint.js';
|
|
78
|
-
export { CompetingVendorProduct } from './
|
|
79
|
-
export { ProductMatchJob } from './
|
|
80
|
-
export { ProductMatchJobEndpoint } from './
|
|
81
|
-
export { IndexJob } from './
|
|
82
|
-
export { VendorStatus } from './
|
|
83
|
-
export { IndexJobEndpoint } from './
|
|
84
|
-
export { Vendor } from './
|
|
85
|
-
export { Competitor } from './
|
|
86
|
-
export { ProductMatch } from './
|
|
87
|
-
export { MatchedVendorProduct } from './
|
|
88
|
-
export { CatalogProductWithMatches } from './
|
|
89
|
-
export { ReviewMatch } from './
|
|
90
|
-
export { TopCompetitor } from './
|
|
91
|
-
export { PriceIndexSnapshotEntry } from './
|
|
92
|
-
export { ProductMatchEndpoint } from './
|
|
93
|
-
export { PulseCatalogProductEndpoint } from './
|
|
94
|
-
export { PriceAlertConfig } from './
|
|
95
|
-
export { PriceAlertEvent } from './
|
|
96
|
-
export { PriceAlertEndpoint } from './
|
|
97
|
-
export { PricingRule } from './
|
|
98
|
-
export { PriceSuggestion } from './
|
|
99
|
-
export { PricingEndpoint } from './
|
|
100
|
-
export { ProductGroup } from './
|
|
101
|
-
export { ProductGroupEndpoint } from './
|
|
78
|
+
export { CompetingVendorProduct } from './MarketPulse/Model/CompetingVendorProduct.js';
|
|
79
|
+
export { ProductMatchJob } from './MarketPulse/Model/ProductMatchJob.js';
|
|
80
|
+
export { ProductMatchJobEndpoint } from './MarketPulse/Service/ProductMatchJobEndpoint.js';
|
|
81
|
+
export { IndexJob } from './MarketPulse/Model/IndexJob.js';
|
|
82
|
+
export { VendorStatus } from './MarketPulse/Model/VendorStatus.js';
|
|
83
|
+
export { IndexJobEndpoint } from './MarketPulse/Service/IndexJobEndpoint.js';
|
|
84
|
+
export { Vendor } from './MarketPulse/Model/Vendor.js';
|
|
85
|
+
export { Competitor } from './MarketPulse/Model/Competitor.js';
|
|
86
|
+
export { ProductMatch } from './MarketPulse/Model/ProductMatch.js';
|
|
87
|
+
export { MatchedVendorProduct } from './MarketPulse/Model/MatchedVendorProduct.js';
|
|
88
|
+
export { CatalogProductWithMatches } from './MarketPulse/Model/CatalogProductWithMatches.js';
|
|
89
|
+
export { ReviewMatch } from './MarketPulse/Model/ReviewMatch.js';
|
|
90
|
+
export { TopCompetitor } from './MarketPulse/Model/TopCompetitor.js';
|
|
91
|
+
export { PriceIndexSnapshotEntry } from './MarketPulse/Model/PriceIndexSnapshotEntry.js';
|
|
92
|
+
export { ProductMatchEndpoint } from './MarketPulse/Service/ProductMatchEndpoint.js';
|
|
93
|
+
export { PulseCatalogProductEndpoint } from './MarketPulse/Service/PulseCatalogProductEndpoint.js';
|
|
94
|
+
export { PriceAlertConfig } from './MarketPulse/Model/PriceAlertConfig.js';
|
|
95
|
+
export { PriceAlertEvent } from './MarketPulse/Model/PriceAlertEvent.js';
|
|
96
|
+
export { PriceAlertEndpoint } from './MarketPulse/Service/PriceAlertEndpoint.js';
|
|
97
|
+
export { PricingRule } from './MarketPulse/Model/PricingRule.js';
|
|
98
|
+
export { PriceSuggestion } from './MarketPulse/Model/PriceSuggestion.js';
|
|
99
|
+
export { PricingEndpoint } from './MarketPulse/Service/PricingEndpoint.js';
|
|
100
|
+
export { ProductGroup } from './MarketPulse/Model/ProductGroup.js';
|
|
101
|
+
export { ProductGroupEndpoint } from './MarketPulse/Service/ProductGroupEndpoint.js';
|
|
102
102
|
export { CatalogProduct } from './Catalog/Model/CatalogProduct.js';
|
|
103
103
|
export { CatalogProductEndpoint } from './Catalog/Service/CatalogProductEndpoint.js';
|
|
104
|
-
export { GenerateContentBatch } from './
|
|
105
|
-
export { GenerateContentEndpoint } from './
|
|
106
|
-
export { CompetitorEndpoint } from './
|
|
107
|
-
export {
|
|
104
|
+
export { GenerateContentBatch } from './DataEnrichment/Model/GenerateContentBatch.js';
|
|
105
|
+
export { GenerateContentEndpoint } from './DataEnrichment/Service/GenerateContentEndpoint.js';
|
|
106
|
+
export { CompetitorEndpoint } from './MarketPulse/Service/CompetitorEndpoint.js';
|
|
107
|
+
export { VendorEndpoint } from './MarketPulse/Service/VendorEndpoint.js';
|
|
108
|
+
export { PulseStatisticsEndpoint } from './MarketPulse/Service/PulseStatisticsEndpoint.js';
|
|
108
109
|
export { QualityDataset } from './DataQuality/Model/QualityDataset.js';
|
|
109
110
|
export { QualityEntity } from './DataQuality/Model/QualityEntity.js';
|
|
110
111
|
export { QualityProblem } from './DataQuality/Model/QualityProblem.js';
|
|
111
112
|
export { QualityProblemDefinition } from './DataQuality/Model/QualityProblemDefinition.js';
|
|
113
|
+
export { QualityScan } from './DataQuality/Model/QualityScan.js';
|
|
114
|
+
export { QualityReportEntity } from './DataQuality/Model/QualityReportEntity.js';
|
|
115
|
+
export { QualityReportProblem } from './DataQuality/Model/QualityReportProblem.js';
|
|
116
|
+
export { QualityReportResult } from './DataQuality/Model/QualityReportResult.js';
|
|
112
117
|
export { QualityProblemEvent } from './DataQuality/Model/QualityProblemEvent.js';
|
|
113
118
|
export { QualityEntityProblemSuppression } from './DataQuality/Model/QualityEntityProblemSuppression.js';
|
|
114
119
|
export { QualityEndpoint } from './DataQuality/Service/QualityEndpoint.js';
|
|
@@ -167,6 +172,10 @@ export { UserAuthProvider } from './Model/User/UserAuthProvider.js';
|
|
|
167
172
|
export { UserAction } from './Model/User/UserAction.js';
|
|
168
173
|
export { UserSummary } from './Model/User/UserSummary.js';
|
|
169
174
|
export { RunnerImage } from './Model/Runner/RunnerImage.js';
|
|
175
|
+
export { Component } from './Model/Component/Component.js';
|
|
176
|
+
export { ComponentKind } from './Model/Component/ComponentKind.js';
|
|
177
|
+
export { ComponentStatus } from './Model/Component/ComponentStatus.js';
|
|
178
|
+
export { ComponentVersion } from './Model/Component/ComponentVersion.js';
|
|
170
179
|
export { CommandExecutionHistory } from './Model/Command/CommandExecutionHistory.js';
|
|
171
180
|
export { CommandExecutionStatus } from './Model/Command/CommandExecutionStatus.js';
|
|
172
181
|
export { Endpoint } from './Service/Endpoint.js';
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.97.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.97.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attlaz/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.98.0",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
"setversion": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
|
|
43
43
|
"clean": "rimraf dist",
|
|
44
44
|
"scan": "docker run -v .:/path zricethezav/gitleaks:latest detect --source=\"/path\" ",
|
|
45
|
-
"test": "jest"
|
|
45
|
+
"test": "jest",
|
|
46
|
+
"test:unit": "jest --config jest.config.unit.js",
|
|
47
|
+
"typecheck": "tsc --project tsconfig.json --noEmit"
|
|
46
48
|
},
|
|
47
49
|
"publishConfig": {
|
|
48
50
|
"access": "public",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ApiRecord } from '../../Model/ApiRecord.js';
|
|
2
|
-
/**
|
|
3
|
-
* A shop whose products Market Pulse tracks — your own or a competitor's. It is the same entity in
|
|
4
|
-
* both roles; a {@link Competitor} is a vendor as one catalog watches it.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Vendor {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
icon: string | null;
|
|
10
|
-
constructor(id: string, name: string);
|
|
11
|
-
static parse(raw: ApiRecord): Vendor;
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A shop whose products Market Pulse tracks — your own or a competitor's. It is the same entity in
|
|
3
|
-
* both roles; a {@link Competitor} is a vendor as one catalog watches it.
|
|
4
|
-
*/
|
|
5
|
-
export class Vendor {
|
|
6
|
-
id;
|
|
7
|
-
name;
|
|
8
|
-
icon = null;
|
|
9
|
-
constructor(id, name) {
|
|
10
|
-
this.id = id;
|
|
11
|
-
this.name = name;
|
|
12
|
-
}
|
|
13
|
-
static parse(raw) {
|
|
14
|
-
const vendor = new Vendor(raw.id, raw.name ?? '');
|
|
15
|
-
vendor.icon = raw.icon ?? null;
|
|
16
|
-
return vendor;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CatalogId } from '../../Catalog/Model/CatalogId.js';
|
|
2
|
-
import { CursorPagination } from '../../Model/Pagination/CursorPagination.js';
|
|
3
|
-
import { CollectionResult } from '../../Model/Result/CollectionResult.js';
|
|
4
|
-
import { Endpoint } from '../../Service/Endpoint.js';
|
|
5
|
-
import { Competitor } from '../Model/Competitor.js';
|
|
6
|
-
/**
|
|
7
|
-
* The competitors a catalog is watched against — `/pulse/catalogs/:catalogId/competing-vendors`
|
|
8
|
-
* for the catalog's list, `/pulse/competing-vendors/:competitorId` for one.
|
|
9
|
-
*/
|
|
10
|
-
export declare class CompetitorEndpoint extends Endpoint {
|
|
11
|
-
getByCatalog(catalogId: CatalogId | string, pagination?: CursorPagination | null): Promise<CollectionResult<Competitor>>;
|
|
12
|
-
getById(competitorId: string): Promise<Competitor | null>;
|
|
13
|
-
/** Start watching a vendor as a competitor of this catalog. */
|
|
14
|
-
add(catalogId: CatalogId | string, vendorId: string): Promise<Competitor | null>;
|
|
15
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { QueryString } from '../../Http/Data/QueryString.js';
|
|
2
|
-
import { Endpoint } from '../../Service/Endpoint.js';
|
|
3
|
-
import { Competitor } from '../Model/Competitor.js';
|
|
4
|
-
/**
|
|
5
|
-
* The competitors a catalog is watched against — `/pulse/catalogs/:catalogId/competing-vendors`
|
|
6
|
-
* for the catalog's list, `/pulse/competing-vendors/:competitorId` for one.
|
|
7
|
-
*/
|
|
8
|
-
export class CompetitorEndpoint extends Endpoint {
|
|
9
|
-
async getByCatalog(catalogId, pagination = null) {
|
|
10
|
-
const queryString = new QueryString('/pulse/catalogs/' + catalogId.toString() + '/competing-vendors');
|
|
11
|
-
queryString.addPagination(pagination);
|
|
12
|
-
return await this.requestCollection(queryString, Competitor.parse);
|
|
13
|
-
}
|
|
14
|
-
async getById(competitorId) {
|
|
15
|
-
const result = await this.requestObject('/pulse/competing-vendors/' + competitorId, null, Competitor.parse, 'GET');
|
|
16
|
-
return result.getData();
|
|
17
|
-
}
|
|
18
|
-
/** Start watching a vendor as a competitor of this catalog. */
|
|
19
|
-
async add(catalogId, vendorId) {
|
|
20
|
-
const result = await this.requestObject('/pulse/catalogs/' + catalogId.toString() + '/competing-vendors', { vendor: vendorId }, Competitor.parse, 'POST');
|
|
21
|
-
return result.getData();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|