@azure-tools/rlc-common 0.13.1 → 0.13.2
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/.rush/temp/operation/build/state.json +1 -1
- package/.rush/temp/package-deps_build.json +13 -13
- package/.rush/temp/shrinkwrap-deps.json +9 -10
- package/CHANGELOG.md +6 -0
- package/dist/buildClient.js +5 -1
- package/dist/buildClient.js.map +1 -1
- package/dist/buildIndexFile.js +12 -1
- package/dist/buildIndexFile.js.map +1 -1
- package/dist/buildSerializeHelper.js +3 -0
- package/dist/buildSerializeHelper.js.map +1 -1
- package/dist/buildTopLevelIndexFile.js +6 -2
- package/dist/buildTopLevelIndexFile.js.map +1 -1
- package/dist/helpers/nameConstructors.js +1 -1
- package/dist/helpers/nameConstructors.js.map +1 -1
- package/dist/helpers/nameUtils.js +6 -5
- package/dist/helpers/nameUtils.js.map +1 -1
- package/dist/helpers/operationHelpers.js +6 -1
- package/dist/helpers/operationHelpers.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/static/serializeHelper.js +13 -9
- package/dist/static/serializeHelper.js.map +1 -1
- package/dist-esm/buildClient.js +5 -1
- package/dist-esm/buildClient.js.map +1 -1
- package/dist-esm/buildIndexFile.js +13 -2
- package/dist-esm/buildIndexFile.js.map +1 -1
- package/dist-esm/buildSerializeHelper.js +5 -2
- package/dist-esm/buildSerializeHelper.js.map +1 -1
- package/dist-esm/buildTopLevelIndexFile.js +6 -2
- package/dist-esm/buildTopLevelIndexFile.js.map +1 -1
- package/dist-esm/helpers/nameConstructors.js +1 -1
- package/dist-esm/helpers/nameConstructors.js.map +1 -1
- package/dist-esm/helpers/nameUtils.js +4 -3
- package/dist-esm/helpers/nameUtils.js.map +1 -1
- package/dist-esm/helpers/operationHelpers.js +3 -0
- package/dist-esm/helpers/operationHelpers.js.map +1 -1
- package/dist-esm/index.js +1 -0
- package/dist-esm/index.js.map +1 -1
- package/dist-esm/interfaces.js.map +1 -1
- package/dist-esm/package.json +1 -1
- package/dist-esm/static/serializeHelper.js +12 -8
- package/dist-esm/static/serializeHelper.js.map +1 -1
- package/package.json +1 -1
- package/src/buildClient.ts +10 -3
- package/src/buildIndexFile.ts +17 -1
- package/src/buildSerializeHelper.ts +5 -0
- package/src/buildTopLevelIndexFile.ts +9 -1
- package/src/helpers/nameConstructors.ts +6 -2
- package/src/helpers/nameUtils.ts +4 -3
- package/src/helpers/operationHelpers.ts +4 -0
- package/src/index.ts +1 -0
- package/src/interfaces.ts +1 -0
- package/src/static/serializeHelper.ts +13 -8
- package/types/helpers/nameUtils.d.ts +1 -0
- package/types/helpers/operationHelpers.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/interfaces.d.ts +1 -0
- package/types/static/serializeHelper.d.ts +5 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const buildMultiCollectionContent = `
|
|
2
2
|
export function buildMultiCollection(
|
|
3
|
-
|
|
3
|
+
items: string[],
|
|
4
4
|
parameterName: string
|
|
5
5
|
) {
|
|
6
|
-
return
|
|
6
|
+
return items
|
|
7
7
|
.map((item, index) => {
|
|
8
8
|
if (index === 0) {
|
|
9
9
|
return item;
|
|
@@ -14,16 +14,21 @@ export function buildMultiCollection(
|
|
|
14
14
|
}`;
|
|
15
15
|
|
|
16
16
|
export const buildPipeCollectionContent = `
|
|
17
|
-
export function buildPipeCollection(
|
|
18
|
-
return
|
|
17
|
+
export function buildPipeCollection(items: string[]): string {
|
|
18
|
+
return items.join("|");
|
|
19
19
|
}`;
|
|
20
20
|
|
|
21
21
|
export const buildSsvCollectionContent = `
|
|
22
|
-
export function buildSsvCollection(
|
|
23
|
-
return
|
|
22
|
+
export function buildSsvCollection(items: string[]): string {
|
|
23
|
+
return items.join(" ");
|
|
24
24
|
}`;
|
|
25
25
|
|
|
26
26
|
export const buildTsvCollectionContent = `
|
|
27
|
-
export function buildTsvCollection(
|
|
28
|
-
return
|
|
27
|
+
export function buildTsvCollection(items: string[]) {
|
|
28
|
+
return items.join("\\t");
|
|
29
|
+
}`;
|
|
30
|
+
|
|
31
|
+
export const buildCsvCollectionContent = `
|
|
32
|
+
export function buildCsvCollection(items: string[]) {
|
|
33
|
+
return items.join(",");
|
|
29
34
|
}`;
|
|
@@ -8,6 +8,7 @@ export declare function hasMultiCollection(model: RLCModel): boolean;
|
|
|
8
8
|
export declare function hasPipeCollection(model: RLCModel): boolean;
|
|
9
9
|
export declare function hasSsvCollection(model: RLCModel): boolean;
|
|
10
10
|
export declare function hasTsvCollection(model: RLCModel): boolean;
|
|
11
|
+
export declare function hasCsvCollection(model: RLCModel): boolean;
|
|
11
12
|
export declare function hasUnexpectedHelper(model: RLCModel): boolean;
|
|
12
13
|
export declare function hasInputModels(model: RLCModel): boolean;
|
|
13
14
|
export declare function hasOutputModels(model: RLCModel): boolean;
|
package/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./helpers/nameConstructors.js";
|
|
|
6
6
|
export * from "./buildResponseTypes.js";
|
|
7
7
|
export * from "./helpers/shortcutMethods.js";
|
|
8
8
|
export * from "./helpers/nameUtils.js";
|
|
9
|
+
export * from "./helpers/operationHelpers.js";
|
|
9
10
|
export * from "./buildParameterTypes.js";
|
|
10
11
|
export * from "./buildIsUnexpectedHelper.js";
|
|
11
12
|
export * from "./buildTopLevelIndexFile.js";
|
package/types/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const buildMultiCollectionContent = "\nexport function buildMultiCollection(\n
|
|
2
|
-
export declare const buildPipeCollectionContent = "\nexport function buildPipeCollection(
|
|
3
|
-
export declare const buildSsvCollectionContent = "\nexport function buildSsvCollection(
|
|
4
|
-
export declare const buildTsvCollectionContent = "\nexport function buildTsvCollection(
|
|
1
|
+
export declare const buildMultiCollectionContent = "\nexport function buildMultiCollection(\n items: string[],\n parameterName: string\n) {\n return items\n .map((item, index) => {\n if (index === 0) {\n return item;\n }\n return `${parameterName}=${item}`;\n })\n .join(\"&\");\n}";
|
|
2
|
+
export declare const buildPipeCollectionContent = "\nexport function buildPipeCollection(items: string[]): string {\n return items.join(\"|\");\n}";
|
|
3
|
+
export declare const buildSsvCollectionContent = "\nexport function buildSsvCollection(items: string[]): string {\n return items.join(\" \");\n}";
|
|
4
|
+
export declare const buildTsvCollectionContent = "\nexport function buildTsvCollection(items: string[]) {\n return items.join(\"\\t\");\n}";
|
|
5
|
+
export declare const buildCsvCollectionContent = "\nexport function buildCsvCollection(items: string[]) {\n return items.join(\",\");\n}";
|