@salesforce/lds-adapters-platform-i18n 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-i18n.js +302 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getTimezonesByLocale.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectI18nTimezonesByLocale.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/AddressCountry.d.ts +56 -0
- package/dist/es/es2018/types/src/generated/types/AddressState.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/StateCountryInputRequest.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/StateCountryOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/StateCountryTranslations.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/TimezoneOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/TimezoneRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +69 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +333 -0
- package/src/raml/api.raml +176 -0
- package/src/raml/luvio.raml +18 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '58.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
|
+
securitySchemes:
|
|
11
|
+
OAuth2:
|
|
12
|
+
type: OAuth 2.0
|
|
13
|
+
settings:
|
|
14
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
15
|
+
accessTokenUri: ''
|
|
16
|
+
authorizationGrants:
|
|
17
|
+
- implicit
|
|
18
|
+
annotationTypes:
|
|
19
|
+
oas-readOnly:
|
|
20
|
+
type: boolean
|
|
21
|
+
allowedTargets: TypeDeclaration
|
|
22
|
+
oas-collectionFormat:
|
|
23
|
+
type: string
|
|
24
|
+
oas-body-name:
|
|
25
|
+
type: string
|
|
26
|
+
allowedTargets: TypeDeclaration
|
|
27
|
+
types:
|
|
28
|
+
AddressCountry:
|
|
29
|
+
description: Output representations of Address Country object.
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
active:
|
|
33
|
+
description: Country active flag.
|
|
34
|
+
type: boolean
|
|
35
|
+
isoCode:
|
|
36
|
+
description: Country IsoCode.
|
|
37
|
+
type: string
|
|
38
|
+
label:
|
|
39
|
+
description: Country localized label.
|
|
40
|
+
type: string
|
|
41
|
+
orgDefault:
|
|
42
|
+
description: Country orgDefault flag.
|
|
43
|
+
type: boolean
|
|
44
|
+
phoneCountryCode:
|
|
45
|
+
description: Phone country code associated with Country.
|
|
46
|
+
type: integer
|
|
47
|
+
standard:
|
|
48
|
+
description: Country if standard flag.
|
|
49
|
+
type: boolean
|
|
50
|
+
stateNameType:
|
|
51
|
+
description: Type of states supported in Country.
|
|
52
|
+
type: string
|
|
53
|
+
states:
|
|
54
|
+
description: List of states belonging to the Country.
|
|
55
|
+
type: array
|
|
56
|
+
items:
|
|
57
|
+
type: AddressState
|
|
58
|
+
visible:
|
|
59
|
+
description: Country visible flag.
|
|
60
|
+
type: boolean
|
|
61
|
+
zipNameType:
|
|
62
|
+
description: Type of zip codes supported in Country.
|
|
63
|
+
type: string
|
|
64
|
+
AddressState:
|
|
65
|
+
description: Address State Representation
|
|
66
|
+
type: object
|
|
67
|
+
properties:
|
|
68
|
+
active:
|
|
69
|
+
description: State active flag
|
|
70
|
+
type: boolean
|
|
71
|
+
isoCode:
|
|
72
|
+
description: State IsoCode
|
|
73
|
+
type: string
|
|
74
|
+
label:
|
|
75
|
+
description: State localized label.
|
|
76
|
+
type: string
|
|
77
|
+
standard:
|
|
78
|
+
description: State standard flag.
|
|
79
|
+
type: boolean
|
|
80
|
+
visible:
|
|
81
|
+
description: State visible flag
|
|
82
|
+
type: boolean
|
|
83
|
+
StateCountryInputRequest:
|
|
84
|
+
description: Input Representation to get locale and filter params for State and
|
|
85
|
+
Country list API.
|
|
86
|
+
type: object
|
|
87
|
+
properties:
|
|
88
|
+
countries:
|
|
89
|
+
description: Property representing the list of countries to skip from output.
|
|
90
|
+
type: array
|
|
91
|
+
items:
|
|
92
|
+
type: string
|
|
93
|
+
filterType:
|
|
94
|
+
description: Property representing the filter type
|
|
95
|
+
type: string
|
|
96
|
+
enum:
|
|
97
|
+
- E
|
|
98
|
+
- Exclude
|
|
99
|
+
- I
|
|
100
|
+
- Include
|
|
101
|
+
locale:
|
|
102
|
+
description: Property representing the locale for translation.
|
|
103
|
+
type: string
|
|
104
|
+
states:
|
|
105
|
+
description: Property representing the list of states to skip from the output.
|
|
106
|
+
type: array
|
|
107
|
+
items:
|
|
108
|
+
type: string
|
|
109
|
+
StateCountryOutputRepresentation:
|
|
110
|
+
description: Representation for StateAndCountryTranslations
|
|
111
|
+
type: object
|
|
112
|
+
properties:
|
|
113
|
+
addressCountry:
|
|
114
|
+
description: List of Countries and respective states in localized way.
|
|
115
|
+
type: array
|
|
116
|
+
items:
|
|
117
|
+
type: string
|
|
118
|
+
StateCountryTranslations:
|
|
119
|
+
description: Output representations of State and Country translations APIs response.
|
|
120
|
+
type: object
|
|
121
|
+
properties:
|
|
122
|
+
addressCountries:
|
|
123
|
+
description: List of addressCountries.
|
|
124
|
+
type: array
|
|
125
|
+
items:
|
|
126
|
+
type: AddressCountry
|
|
127
|
+
TimezoneOutputRepresentation:
|
|
128
|
+
description: Representation of Timezone localized list.
|
|
129
|
+
type: object
|
|
130
|
+
properties:
|
|
131
|
+
timezones:
|
|
132
|
+
description: List of Timezones with localized labels.
|
|
133
|
+
type: array
|
|
134
|
+
items:
|
|
135
|
+
type: TimezoneRepresentation
|
|
136
|
+
TimezoneRepresentation:
|
|
137
|
+
description: Representation of Timezone
|
|
138
|
+
type: object
|
|
139
|
+
properties:
|
|
140
|
+
displayLabel:
|
|
141
|
+
description: Timezone localized display label.
|
|
142
|
+
type: string
|
|
143
|
+
offset:
|
|
144
|
+
description: Timezone Offset.
|
|
145
|
+
type: string
|
|
146
|
+
timezoneId:
|
|
147
|
+
description: Timezone Id.
|
|
148
|
+
type: string
|
|
149
|
+
/connect/i18n:
|
|
150
|
+
/statecountry:
|
|
151
|
+
# TODO: Hand rolled
|
|
152
|
+
# post:
|
|
153
|
+
# description: Retrieve the list of States and Countries with labels in given
|
|
154
|
+
# locales language.
|
|
155
|
+
# responses:
|
|
156
|
+
# '200':
|
|
157
|
+
# description: Success
|
|
158
|
+
# body:
|
|
159
|
+
# application/json:
|
|
160
|
+
# type: StateCountryTranslations
|
|
161
|
+
# body:
|
|
162
|
+
# application/json:
|
|
163
|
+
# type: StateCountryInputRequest
|
|
164
|
+
# (oas-body-name): stateCountryInput
|
|
165
|
+
/timezones/{locale}:
|
|
166
|
+
get:
|
|
167
|
+
description: Fetch list of timezones supported with localized labels.
|
|
168
|
+
responses:
|
|
169
|
+
'200':
|
|
170
|
+
description: Success
|
|
171
|
+
body:
|
|
172
|
+
application/json:
|
|
173
|
+
type: TimezoneOutputRepresentation
|
|
174
|
+
uriParameters:
|
|
175
|
+
locale:
|
|
176
|
+
type: string
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'platformi18n'
|
|
8
|
+
(luvio.ttl): 2592000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
TimezoneOutputRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
|
|
14
|
+
/connect/i18n:
|
|
15
|
+
/timezones/{locale}:
|
|
16
|
+
get:
|
|
17
|
+
(luvio.adapter):
|
|
18
|
+
name: getTimezonesByLocale
|