@coveo/platform-client 57.0.0 → 57.2.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/cjs/resources/ApiKeyTemplate/ApiKeyTemplate.js +3 -0
- package/dist/cjs/resources/ApiKeyTemplate/ApiKeyTemplate.js.map +1 -1
- package/dist/cjs/resources/License/LicenseInterfaces.js.map +1 -1
- package/dist/esm/resources/ApiKeyTemplate/ApiKeyTemplate.js +3 -0
- package/dist/esm/resources/ApiKeyTemplate/ApiKeyTemplate.js.map +1 -1
- package/dist/esm/resources/License/LicenseInterfaces.js.map +1 -1
- package/dist/types/resources/ApiKeyTemplate/ApiKeyTemplate.d.ts +2 -1
- package/dist/types/resources/ApiKeyTemplate/ApiKeyTemplateInterface.d.ts +14 -0
- package/dist/types/resources/License/LicenseInterfaces.d.ts +49 -0
- package/package.json +1 -1
|
@@ -7,6 +7,9 @@ class ApiKeyTemplate extends Resource_js_1.default {
|
|
|
7
7
|
get(apiKeyTemplateId) {
|
|
8
8
|
return this.api.get(`${ApiKeyTemplate.baseUrl}/${apiKeyTemplateId}`);
|
|
9
9
|
}
|
|
10
|
+
listAPIKeysEligibility() {
|
|
11
|
+
return this.api.get(`${ApiKeyTemplate.baseUrl}/privileges/eligibility`);
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
exports.default = ApiKeyTemplate;
|
|
12
15
|
//# sourceMappingURL=ApiKeyTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeyTemplate.js","sourceRoot":"","sources":["../../../../src/resources/ApiKeyTemplate/ApiKeyTemplate.ts"],"names":[],"mappings":";;;AAAA,yEAAsC;AAGtC,MAAqB,cAAe,SAAQ,qBAAQ;IAChD,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAE3C,GAAG,CAAC,gBAAwB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAsB,GAAG,cAAc,CAAC,OAAO,IAAI,gBAAgB,EAAE,CAAC,CAAC;IAC9F,CAAC;;
|
|
1
|
+
{"version":3,"file":"ApiKeyTemplate.js","sourceRoot":"","sources":["../../../../src/resources/ApiKeyTemplate/ApiKeyTemplate.ts"],"names":[],"mappings":";;;AAAA,yEAAsC;AAGtC,MAAqB,cAAe,SAAQ,qBAAQ;IAChD,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAE3C,GAAG,CAAC,gBAAwB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAsB,GAAG,cAAc,CAAC,OAAO,IAAI,gBAAgB,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,sBAAsB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,OAAO,yBAAyB,CACrD,CAAC;IACN,CAAC;;AAXL,iCAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LicenseInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/License/LicenseInterfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LicenseInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/License/LicenseInterfaces.ts"],"names":[],"mappings":";;;AA6LA;;GAEG;AACH,IAAY,sBAmBX;AAnBD,WAAY,sBAAsB;IAC9B;;OAEG;IACH,yDAA+B,CAAA;IAC/B;;;OAGG;IACH,+DAAqC,CAAA;IACrC;;OAEG;IACH,mEAAyC,CAAA;IACzC;;;OAGG;IACH,uEAA6C,CAAA;AACjD,CAAC,EAnBW,sBAAsB,sCAAtB,sBAAsB,QAmBjC;AAED;;GAEG;AACH,IAAY,oBAcX;AAdD,WAAY,oBAAoB;IAC5B;;OAEG;IACH,qCAAa,CAAA;IACb;;OAEG;IACH,2CAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAa,CAAA;AACjB,CAAC,EAdW,oBAAoB,oCAApB,oBAAoB,QAc/B;AAED;;GAEG;AACH,IAAY,6BASX;AATD,WAAY,6BAA6B;IACrC;;OAEG;IACH,8CAAa,CAAA;IACb;;OAEG;IACH,8CAAa,CAAA;AACjB,CAAC,EATW,6BAA6B,6CAA7B,6BAA6B,QASxC;AAED;;GAEG;AACH,IAAY,mCAKX;AALD,WAAY,mCAAmC;IAC3C;;OAEG;IACH,sDAAe,CAAA;AACnB,CAAC,EALW,mCAAmC,mDAAnC,mCAAmC,QAK9C"}
|
|
@@ -4,5 +4,8 @@ export default class ApiKeyTemplate extends Resource {
|
|
|
4
4
|
get(apiKeyTemplateId) {
|
|
5
5
|
return this.api.get(`${ApiKeyTemplate.baseUrl}/${apiKeyTemplateId}`);
|
|
6
6
|
}
|
|
7
|
+
listAPIKeysEligibility() {
|
|
8
|
+
return this.api.get(`${ApiKeyTemplate.baseUrl}/privileges/eligibility`);
|
|
9
|
+
}
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=ApiKeyTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeyTemplate.js","sourceRoot":"","sources":["../../../../src/resources/ApiKeyTemplate/ApiKeyTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAGtC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ;IAChD,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAE3C,GAAG,CAAC,gBAAwB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAsB,GAAG,cAAc,CAAC,OAAO,IAAI,gBAAgB,EAAE,CAAC,CAAC;IAC9F,CAAC"}
|
|
1
|
+
{"version":3,"file":"ApiKeyTemplate.js","sourceRoot":"","sources":["../../../../src/resources/ApiKeyTemplate/ApiKeyTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAGtC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ;IAChD,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAE3C,GAAG,CAAC,gBAAwB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAsB,GAAG,cAAc,CAAC,OAAO,IAAI,gBAAgB,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,sBAAsB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,cAAc,CAAC,OAAO,yBAAyB,CACrD,CAAC;IACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LicenseInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/License/LicenseInterfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LicenseInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/License/LicenseInterfaces.ts"],"names":[],"mappings":"AA6LA;;GAEG;AACH,MAAM,CAAN,IAAY,sBAmBX;AAnBD,WAAY,sBAAsB;IAC9B;;OAEG;IACH,yDAA+B,CAAA;IAC/B;;;OAGG;IACH,+DAAqC,CAAA;IACrC;;OAEG;IACH,mEAAyC,CAAA;IACzC;;;OAGG;IACH,uEAA6C,CAAA;AACjD,CAAC,EAnBW,sBAAsB,KAAtB,sBAAsB,QAmBjC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,oBAcX;AAdD,WAAY,oBAAoB;IAC5B;;OAEG;IACH,qCAAa,CAAA;IACb;;OAEG;IACH,2CAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAa,CAAA;AACjB,CAAC,EAdW,oBAAoB,KAApB,oBAAoB,QAc/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,6BASX;AATD,WAAY,6BAA6B;IACrC;;OAEG;IACH,8CAAa,CAAA;IACb;;OAEG;IACH,8CAAa,CAAA;AACjB,CAAC,EATW,6BAA6B,KAA7B,6BAA6B,QASxC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mCAKX;AALD,WAAY,mCAAmC;IAC3C;;OAEG;IACH,sDAAe,CAAA;AACnB,CAAC,EALW,mCAAmC,KAAnC,mCAAmC,QAK9C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Resource from '../Resource.js';
|
|
2
|
-
import { ApiKeyTemplateModel } from './ApiKeyTemplateInterface.js';
|
|
2
|
+
import { ApiKeyTemplateEligibilityResponseModel, ApiKeyTemplateModel } from './ApiKeyTemplateInterface.js';
|
|
3
3
|
export default class ApiKeyTemplate extends Resource {
|
|
4
4
|
static baseUrl: string;
|
|
5
5
|
get(apiKeyTemplateId: string): Promise<ApiKeyTemplateModel>;
|
|
6
|
+
listAPIKeysEligibility(): Promise<ApiKeyTemplateEligibilityResponseModel[]>;
|
|
6
7
|
}
|
|
@@ -25,3 +25,17 @@ export interface ApiKeyTemplateModel {
|
|
|
25
25
|
*/
|
|
26
26
|
privileges?: PrivilegeModel[];
|
|
27
27
|
}
|
|
28
|
+
export interface ApiKeyTemplateEligibilityResponseModel {
|
|
29
|
+
/**
|
|
30
|
+
* The id of the template
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* The list of privileges missing to access the template
|
|
35
|
+
*/
|
|
36
|
+
missingPrivileges: PrivilegeModel[];
|
|
37
|
+
/**
|
|
38
|
+
* If the user can generate an API key from this template
|
|
39
|
+
*/
|
|
40
|
+
canGenerate: boolean;
|
|
41
|
+
}
|
|
@@ -86,21 +86,70 @@ export interface LicenseModel {
|
|
|
86
86
|
type: string;
|
|
87
87
|
}
|
|
88
88
|
export interface EntitlementModel {
|
|
89
|
+
/**
|
|
90
|
+
* Limit of items
|
|
91
|
+
*/
|
|
89
92
|
itemLimit: number;
|
|
93
|
+
/**
|
|
94
|
+
* Limit of Queries Per Month for product listing
|
|
95
|
+
*/
|
|
90
96
|
lrpmLimit: number;
|
|
97
|
+
/**
|
|
98
|
+
* The unique identifier of the entitlement
|
|
99
|
+
*/
|
|
91
100
|
id: string;
|
|
101
|
+
/**
|
|
102
|
+
* The unique identifier of the product on Salesforce
|
|
103
|
+
*/
|
|
92
104
|
productId: string;
|
|
105
|
+
/**
|
|
106
|
+
* Name of the product on Salesforce
|
|
107
|
+
*/
|
|
93
108
|
productName: string;
|
|
109
|
+
/**
|
|
110
|
+
* Unit on which the price is based on
|
|
111
|
+
*/
|
|
94
112
|
pricingUnit: string;
|
|
113
|
+
/**
|
|
114
|
+
* Name of the product on Coveo
|
|
115
|
+
*/
|
|
95
116
|
displayName: string;
|
|
117
|
+
/**
|
|
118
|
+
* Queries per month limit
|
|
119
|
+
*/
|
|
96
120
|
qpmLimit: number;
|
|
121
|
+
/**
|
|
122
|
+
* Reommendation Limit
|
|
123
|
+
*/
|
|
97
124
|
recommendationLimit: number;
|
|
125
|
+
/**
|
|
126
|
+
* Status of the entitlement
|
|
127
|
+
*/
|
|
98
128
|
status: string;
|
|
129
|
+
/**
|
|
130
|
+
* Flag that informs if entitlement allow unlimited Queries Per Month
|
|
131
|
+
*/
|
|
99
132
|
unlimitedQPM: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Flag that informs if entitlement allow unlimited recommendations
|
|
135
|
+
*/
|
|
100
136
|
unlimitedRecommendations: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Flag that informs if entitlement allow unlimited users
|
|
139
|
+
*/
|
|
101
140
|
unlimitedUsers: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Use case of the entitlement
|
|
143
|
+
*/
|
|
102
144
|
useCase: string;
|
|
145
|
+
/**
|
|
146
|
+
* Limit of users for the entitlement
|
|
147
|
+
*/
|
|
103
148
|
userLimit: number;
|
|
149
|
+
/**
|
|
150
|
+
* Flag to control if the entitlement should be shown in the consumption dashboard
|
|
151
|
+
*/
|
|
152
|
+
shouldShowInConsumptionDashboard: boolean;
|
|
104
153
|
}
|
|
105
154
|
/**
|
|
106
155
|
* Simplified version of a License's LicenseConnectorModel
|