1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.toTypeNameFormat = exports.toTitleFormat = exports.toPascalCase = exports.toPropertyFormat = exports.toStaticPropertyFormat = void 0;
|
4 | var util_1 = require("@sap-cloud-sdk/util");
|
5 | /**
|
6 | * @deprecated Since v1.32.2. Use functions from `@sap-cloud-sdk/util` instead.
|
7 | * Converts a string to the format used by static properties. Use this for serialization.
|
8 | * @param str - The string to be transformed.
|
9 | * @returns The transformed string.
|
10 | */
|
11 | function toStaticPropertyFormat(str) {
|
12 | return (0, util_1.upperCaseSnakeCase)(str);
|
13 | }
|
14 | exports.toStaticPropertyFormat = toStaticPropertyFormat;
|
15 | /**
|
16 | * @deprecated Since v1.32.2. Use functions from `@sap-cloud-sdk/util` instead.
|
17 | * Converts a string to the format used by properties. Use this for serialization.
|
18 | * @param str - The string to be transformed.
|
19 | * @returns The transformed string.
|
20 | */
|
21 | function toPropertyFormat(str) {
|
22 | return (0, util_1.camelCase)(str);
|
23 | }
|
24 | exports.toPropertyFormat = toPropertyFormat;
|
25 | /**
|
26 | * @deprecated Since v1.32.2. Use functions from `@sap-cloud-sdk/util` instead.
|
27 | * Converts a string to PascalCase format e.g. "MyNameInPascalCase".
|
28 | * @param str - The string to be transformed.
|
29 | * @returns The transformed string.
|
30 | */
|
31 | function toPascalCase(str) {
|
32 | return (0, util_1.pascalCase)(str);
|
33 | }
|
34 | exports.toPascalCase = toPascalCase;
|
35 | /**
|
36 | * @deprecated Since v1.32.2. Use functions from `@sap-cloud-sdk/util` instead.
|
37 | * Converts a string to a human readable format, e.g. it transforms `to_BusinessPartner` to `To Business Partner`. Use this for serialization.
|
38 | * @param str - The string to be transformed.
|
39 | * @returns The transformed string.
|
40 | */
|
41 | function toTitleFormat(str) {
|
42 | return (0, util_1.titleFormat)(str);
|
43 | }
|
44 | exports.toTitleFormat = toTitleFormat;
|
45 | /**
|
46 | * @deprecated Since v1.32.2. Use functions from `@sap-cloud-sdk/util` instead.
|
47 | * Converts a string to the format used by properties. Use this for serialization.
|
48 | * @param str - The string to be transformed.
|
49 | * @returns The transformed string.
|
50 | */
|
51 | function toTypeNameFormat(str) {
|
52 | return (0, util_1.pascalCase)(str);
|
53 | }
|
54 | exports.toTypeNameFormat = toTypeNameFormat;
|
55 | //# sourceMappingURL=name-converter.js.map |
\ | No newline at end of file |