@salesforce/lds-adapters-platform-content-taxonomy 1.286.0 → 1.287.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/es/es2018/platform-content-taxonomy.js +32 -4
- package/dist/es/es2018/types/src/generated/adapters/createTerm.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/updateTerm.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/patchConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectContentTaxonomyTermsByTaxonomyId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermInputRepresentation.d.ts +10 -10
- package/package.json +3 -3
- package/sfdc/index.js +33 -5
- package/src/raml/api.raml +12 -7
|
@@ -856,15 +856,29 @@ function createResourceRequest$3(config) {
|
|
|
856
856
|
const adapterName$3 = 'createTerm';
|
|
857
857
|
const createTerm_ConfigPropertyMetadata = [
|
|
858
858
|
generateParamConfigMetadata('taxonomyId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
859
|
-
generateParamConfigMetadata('description',
|
|
859
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
860
860
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
861
|
-
generateParamConfigMetadata('parentTermId',
|
|
861
|
+
generateParamConfigMetadata('parentTermId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
862
862
|
];
|
|
863
863
|
const createTerm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createTerm_ConfigPropertyMetadata);
|
|
864
864
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(createTerm_ConfigPropertyMetadata);
|
|
865
865
|
function typeCheckConfig$3(untrustedConfig) {
|
|
866
866
|
const config = {};
|
|
867
867
|
typeCheckConfig$6(untrustedConfig, config, createTerm_ConfigPropertyMetadata);
|
|
868
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
869
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
870
|
+
config.description = untrustedConfig_description;
|
|
871
|
+
}
|
|
872
|
+
if (untrustedConfig_description === null) {
|
|
873
|
+
config.description = untrustedConfig_description;
|
|
874
|
+
}
|
|
875
|
+
const untrustedConfig_parentTermId = untrustedConfig.parentTermId;
|
|
876
|
+
if (typeof untrustedConfig_parentTermId === 'string') {
|
|
877
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
878
|
+
}
|
|
879
|
+
if (untrustedConfig_parentTermId === null) {
|
|
880
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
881
|
+
}
|
|
868
882
|
return config;
|
|
869
883
|
}
|
|
870
884
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1178,15 +1192,29 @@ const adapterName = 'updateTerm';
|
|
|
1178
1192
|
const updateTerm_ConfigPropertyMetadata = [
|
|
1179
1193
|
generateParamConfigMetadata('taxonomyId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1180
1194
|
generateParamConfigMetadata('termId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1181
|
-
generateParamConfigMetadata('description',
|
|
1195
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1182
1196
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1183
|
-
generateParamConfigMetadata('parentTermId',
|
|
1197
|
+
generateParamConfigMetadata('parentTermId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1184
1198
|
];
|
|
1185
1199
|
const updateTerm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateTerm_ConfigPropertyMetadata);
|
|
1186
1200
|
const createResourceParams = /*#__PURE__*/ createResourceParams$6(updateTerm_ConfigPropertyMetadata);
|
|
1187
1201
|
function typeCheckConfig(untrustedConfig) {
|
|
1188
1202
|
const config = {};
|
|
1189
1203
|
typeCheckConfig$6(untrustedConfig, config, updateTerm_ConfigPropertyMetadata);
|
|
1204
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
1205
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
1206
|
+
config.description = untrustedConfig_description;
|
|
1207
|
+
}
|
|
1208
|
+
if (untrustedConfig_description === null) {
|
|
1209
|
+
config.description = untrustedConfig_description;
|
|
1210
|
+
}
|
|
1211
|
+
const untrustedConfig_parentTermId = untrustedConfig.parentTermId;
|
|
1212
|
+
if (typeof untrustedConfig_parentTermId === 'string') {
|
|
1213
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
1214
|
+
}
|
|
1215
|
+
if (untrustedConfig_parentTermId === null) {
|
|
1216
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
1217
|
+
}
|
|
1190
1218
|
return config;
|
|
1191
1219
|
}
|
|
1192
1220
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7,9 +7,9 @@ export declare const createTerm_ConfigPropertyMetadata: $64$luvio_engine_Adapter
|
|
|
7
7
|
export declare const createTerm_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface CreateTermConfig {
|
|
9
9
|
taxonomyId: string;
|
|
10
|
-
description
|
|
10
|
+
description?: string | null;
|
|
11
11
|
label: string;
|
|
12
|
-
parentTermId
|
|
12
|
+
parentTermId?: string | null;
|
|
13
13
|
}
|
|
14
14
|
export declare const createResourceParams: (config: CreateTermConfig) => resources_postConnectContentTaxonomyTermsByTaxonomyId_ResourceRequestConfig;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateTermConfig>): adapter$45$utils_Untrusted<CreateTermConfig>;
|
|
@@ -8,9 +8,9 @@ export declare const updateTerm_ConfigPropertyNames: adapter$45$utils_AdapterVal
|
|
|
8
8
|
export interface UpdateTermConfig {
|
|
9
9
|
taxonomyId: string;
|
|
10
10
|
termId: string;
|
|
11
|
-
description
|
|
11
|
+
description?: string | null;
|
|
12
12
|
label: string;
|
|
13
|
-
parentTermId
|
|
13
|
+
parentTermId?: string | null;
|
|
14
14
|
}
|
|
15
15
|
export declare const createResourceParams: (config: UpdateTermConfig) => resources_patchConnectContentTaxonomyTermsByTaxonomyIdAndTermId_ResourceRequestConfig;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateTermConfig>): adapter$45$utils_Untrusted<UpdateTermConfig>;
|
|
@@ -6,9 +6,9 @@ export interface ResourceRequestConfig {
|
|
|
6
6
|
termId: string;
|
|
7
7
|
};
|
|
8
8
|
body: {
|
|
9
|
-
description
|
|
9
|
+
description?: string | null;
|
|
10
10
|
label: string;
|
|
11
|
-
parentTermId
|
|
11
|
+
parentTermId?: string | null;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -5,9 +5,9 @@ export interface ResourceRequestConfig {
|
|
|
5
5
|
taxonomyId: string;
|
|
6
6
|
};
|
|
7
7
|
body: {
|
|
8
|
-
description
|
|
8
|
+
description?: string | null;
|
|
9
9
|
label: string;
|
|
10
|
-
parentTermId
|
|
10
|
+
parentTermId?: string | null;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermInputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "17791e43f4e38b197caffb55776dafa3";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: ContentTaxonomyTermInputRepresentation, existing: ContentTaxonomyTermInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContentTaxonomyTermInputRepresentationNormalized;
|
|
@@ -9,27 +9,27 @@ export declare function equals(existing: ContentTaxonomyTermInputRepresentationN
|
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
10
|
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ContentTaxonomyTermInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
|
-
* Input for creating a content taxonomy term.
|
|
12
|
+
* Input for creating or updating a content taxonomy term.
|
|
13
13
|
*
|
|
14
14
|
* Keys:
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface ContentTaxonomyTermInputRepresentationNormalized {
|
|
18
|
-
/** The description of the term to
|
|
19
|
-
description
|
|
20
|
-
/** The label of the term to create. */
|
|
18
|
+
/** The description of the term, which may be left empty. When updating a term, set to null to clear the description. */
|
|
19
|
+
description?: string | null;
|
|
20
|
+
/** The label of the term to create or, when updating, a new label for an existing term. */
|
|
21
21
|
label: string;
|
|
22
|
-
/**
|
|
23
|
-
parentTermId
|
|
22
|
+
/** When creating a term, the parent term ID of the term to create; set to null or leave empty to create a root term. When updating a term, the new parent term ID for the existing term; set to null to make a child term into a root term. */
|
|
23
|
+
parentTermId?: string | null;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Input for creating a content taxonomy term.
|
|
26
|
+
* Input for creating or updating a content taxonomy term.
|
|
27
27
|
*
|
|
28
28
|
* Keys:
|
|
29
29
|
* (none)
|
|
30
30
|
*/
|
|
31
31
|
export interface ContentTaxonomyTermInputRepresentation {
|
|
32
|
-
description
|
|
32
|
+
description?: string | null;
|
|
33
33
|
label: string;
|
|
34
|
-
parentTermId
|
|
34
|
+
parentTermId?: string | null;
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-content-taxonomy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.287.0",
|
|
4
4
|
"description": "Wire adapters for content taxonomy APIs",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-content-taxonomy.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.287.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.287.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -506,15 +506,29 @@ function createResourceRequest$5(config) {
|
|
|
506
506
|
const adapterName$5 = 'createTerm';
|
|
507
507
|
const createTerm_ConfigPropertyMetadata = [
|
|
508
508
|
generateParamConfigMetadata('taxonomyId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
509
|
-
generateParamConfigMetadata('description',
|
|
509
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
510
510
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
511
|
-
generateParamConfigMetadata('parentTermId',
|
|
511
|
+
generateParamConfigMetadata('parentTermId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
512
512
|
];
|
|
513
513
|
const createTerm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createTerm_ConfigPropertyMetadata);
|
|
514
514
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createTerm_ConfigPropertyMetadata);
|
|
515
515
|
function typeCheckConfig$5(untrustedConfig) {
|
|
516
516
|
const config = {};
|
|
517
517
|
typeCheckConfig$6(untrustedConfig, config, createTerm_ConfigPropertyMetadata);
|
|
518
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
519
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
520
|
+
config.description = untrustedConfig_description;
|
|
521
|
+
}
|
|
522
|
+
if (untrustedConfig_description === null) {
|
|
523
|
+
config.description = untrustedConfig_description;
|
|
524
|
+
}
|
|
525
|
+
const untrustedConfig_parentTermId = untrustedConfig.parentTermId;
|
|
526
|
+
if (typeof untrustedConfig_parentTermId === 'string') {
|
|
527
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
528
|
+
}
|
|
529
|
+
if (untrustedConfig_parentTermId === null) {
|
|
530
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
531
|
+
}
|
|
518
532
|
return config;
|
|
519
533
|
}
|
|
520
534
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -1229,15 +1243,29 @@ const adapterName = 'updateTerm';
|
|
|
1229
1243
|
const updateTerm_ConfigPropertyMetadata = [
|
|
1230
1244
|
generateParamConfigMetadata('taxonomyId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1231
1245
|
generateParamConfigMetadata('termId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1232
|
-
generateParamConfigMetadata('description',
|
|
1246
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1233
1247
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1234
|
-
generateParamConfigMetadata('parentTermId',
|
|
1248
|
+
generateParamConfigMetadata('parentTermId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1235
1249
|
];
|
|
1236
1250
|
const updateTerm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateTerm_ConfigPropertyMetadata);
|
|
1237
1251
|
const createResourceParams = /*#__PURE__*/ createResourceParams$6(updateTerm_ConfigPropertyMetadata);
|
|
1238
1252
|
function typeCheckConfig(untrustedConfig) {
|
|
1239
1253
|
const config = {};
|
|
1240
1254
|
typeCheckConfig$6(untrustedConfig, config, updateTerm_ConfigPropertyMetadata);
|
|
1255
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
1256
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
1257
|
+
config.description = untrustedConfig_description;
|
|
1258
|
+
}
|
|
1259
|
+
if (untrustedConfig_description === null) {
|
|
1260
|
+
config.description = untrustedConfig_description;
|
|
1261
|
+
}
|
|
1262
|
+
const untrustedConfig_parentTermId = untrustedConfig.parentTermId;
|
|
1263
|
+
if (typeof untrustedConfig_parentTermId === 'string') {
|
|
1264
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
1265
|
+
}
|
|
1266
|
+
if (untrustedConfig_parentTermId === null) {
|
|
1267
|
+
config.parentTermId = untrustedConfig_parentTermId;
|
|
1268
|
+
}
|
|
1241
1269
|
return config;
|
|
1242
1270
|
}
|
|
1243
1271
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1337,4 +1365,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1337
1365
|
});
|
|
1338
1366
|
|
|
1339
1367
|
export { createTerm, deleteTerm, getTerm, getTermNotifyChange, getTerm_imperative, getTerms, getTerms_imperative, searchTerms, searchTerms_imperative, updateTerm };
|
|
1340
|
-
// version: 1.
|
|
1368
|
+
// version: 1.287.0-52ee1d50a
|
package/src/raml/api.raml
CHANGED
|
@@ -69,19 +69,24 @@ types:
|
|
|
69
69
|
items:
|
|
70
70
|
type: ContentTaxonomyTermRepresentation
|
|
71
71
|
ContentTaxonomyTermInputRepresentation:
|
|
72
|
-
description: Input for creating a content taxonomy term.
|
|
72
|
+
description: Input for creating or updating a content taxonomy term.
|
|
73
73
|
type: object
|
|
74
74
|
properties:
|
|
75
75
|
description:
|
|
76
|
-
description: The description of the term
|
|
77
|
-
|
|
76
|
+
description: The description of the term, which may be left empty. When updating
|
|
77
|
+
a term, set to null to clear the description.
|
|
78
|
+
type: string | nil
|
|
79
|
+
required: false
|
|
78
80
|
label:
|
|
79
|
-
description: The label of the term to create
|
|
81
|
+
description: The label of the term to create or, when updating, a new label for
|
|
82
|
+
an existing term.
|
|
80
83
|
type: string
|
|
81
84
|
parentTermId:
|
|
82
|
-
description:
|
|
83
|
-
a root term.
|
|
84
|
-
|
|
85
|
+
description: When creating a term, the parent term ID of the term to create;
|
|
86
|
+
set to null or leave empty to create a root term. When updating a term, the new
|
|
87
|
+
parent term ID for the existing term; set to null to make a child term into a root term.
|
|
88
|
+
type: string | nil
|
|
89
|
+
required: false
|
|
85
90
|
ContentTaxonomyTermRepresentation:
|
|
86
91
|
description: A content taxonomy term.
|
|
87
92
|
type: object
|