@manticore-labs/nest 0.0.31 → 0.0.33
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/.idea/workspace.xml +253 -15
- package/build/main/index.d.ts +4 -0
- package/build/main/index.js +5 -1
- package/build/main/lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto.d.ts +5 -0
- package/build/main/lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto.js +25 -0
- package/build/main/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.d.ts +5 -0
- package/build/main/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.js +25 -0
- package/build/main/lib/auth0/auth0.controller.d.ts +12 -0
- package/build/main/lib/auth0/auth0.controller.js +123 -0
- package/build/main/lib/auth0/auth0.service.d.ts +35 -0
- package/build/main/lib/auth0/auth0.service.js +394 -0
- package/build/module/index.d.ts +4 -0
- package/build/module/index.js +5 -1
- package/build/module/lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto.d.ts +5 -0
- package/build/module/lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto.js +22 -0
- package/build/module/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.d.ts +5 -0
- package/build/module/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.js +22 -0
- package/build/module/lib/auth0/auth0.controller.d.ts +12 -0
- package/build/module/lib/auth0/auth0.controller.js +121 -0
- package/build/module/lib/auth0/auth0.service.d.ts +35 -0
- package/build/module/lib/auth0/auth0.service.js +392 -0
- package/package.json +2 -1
package/.idea/workspace.xml
CHANGED
|
@@ -12,9 +12,138 @@
|
|
|
12
12
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
13
13
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
14
14
|
</component>
|
|
15
|
+
<component name="FileEditorManager">
|
|
16
|
+
<leaf>
|
|
17
|
+
<file leaf-file-name="auth0.controller.ts" pinned="false" current-in-tab="false">
|
|
18
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/auth0.controller.ts">
|
|
19
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
20
|
+
<state relative-caret-position="-135">
|
|
21
|
+
<caret line="8" column="24" lean-forward="false" selection-start-line="8" selection-start-column="24" selection-end-line="8" selection-end-column="24" />
|
|
22
|
+
<folding>
|
|
23
|
+
<element signature="n#!!block;n#actualizarUsuarioPorPrimeraVez#0;n#PrincipalAuth0Controller#0" expanded="false" />
|
|
24
|
+
<element signature="n#!!block;n#actualizarCuenta#0;n#PrincipalAuth0Controller#0" expanded="false" />
|
|
25
|
+
</folding>
|
|
26
|
+
</state>
|
|
27
|
+
</provider>
|
|
28
|
+
</entry>
|
|
29
|
+
</file>
|
|
30
|
+
<file leaf-file-name="actualizar-usuario-cuenta-dto.ts" pinned="false" current-in-tab="false">
|
|
31
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto.ts">
|
|
32
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
33
|
+
<state relative-caret-position="518">
|
|
34
|
+
<caret line="14" column="1" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="14" selection-end-column="1" />
|
|
35
|
+
<folding />
|
|
36
|
+
</state>
|
|
37
|
+
</provider>
|
|
38
|
+
</entry>
|
|
39
|
+
</file>
|
|
40
|
+
<file leaf-file-name="actualizar-usuario-dto.ts" pinned="false" current-in-tab="false">
|
|
41
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.ts">
|
|
42
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
43
|
+
<state relative-caret-position="0">
|
|
44
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
45
|
+
<folding />
|
|
46
|
+
</state>
|
|
47
|
+
</provider>
|
|
48
|
+
</entry>
|
|
49
|
+
</file>
|
|
50
|
+
<file leaf-file-name="auth0.service.ts" pinned="false" current-in-tab="false">
|
|
51
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/auth0.service.ts">
|
|
52
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
53
|
+
<state relative-caret-position="333">
|
|
54
|
+
<caret line="9" column="22" lean-forward="false" selection-start-line="9" selection-start-column="22" selection-end-line="9" selection-end-column="31" />
|
|
55
|
+
<folding>
|
|
56
|
+
<element signature="e#0#42#0" expanded="true" />
|
|
57
|
+
</folding>
|
|
58
|
+
</state>
|
|
59
|
+
</provider>
|
|
60
|
+
</entry>
|
|
61
|
+
</file>
|
|
62
|
+
<file leaf-file-name="principal.dto.ts" pinned="false" current-in-tab="false">
|
|
63
|
+
<entry file="file://$PROJECT_DIR$/src/lib/principal.dto.ts">
|
|
64
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
65
|
+
<state relative-caret-position="0">
|
|
66
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
67
|
+
<folding />
|
|
68
|
+
</state>
|
|
69
|
+
</provider>
|
|
70
|
+
</entry>
|
|
71
|
+
</file>
|
|
72
|
+
<file leaf-file-name="index.ts" pinned="false" current-in-tab="false">
|
|
73
|
+
<entry file="file://$PROJECT_DIR$/src/index.ts">
|
|
74
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
75
|
+
<state relative-caret-position="111">
|
|
76
|
+
<caret line="3" column="74" lean-forward="false" selection-start-line="3" selection-start-column="74" selection-end-line="3" selection-end-column="74" />
|
|
77
|
+
<folding />
|
|
78
|
+
</state>
|
|
79
|
+
</provider>
|
|
80
|
+
</entry>
|
|
81
|
+
</file>
|
|
82
|
+
<file leaf-file-name="tslint.json" pinned="false" current-in-tab="false">
|
|
83
|
+
<entry file="file://$PROJECT_DIR$/tslint.json">
|
|
84
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
85
|
+
<state relative-caret-position="0">
|
|
86
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
87
|
+
<folding />
|
|
88
|
+
</state>
|
|
89
|
+
</provider>
|
|
90
|
+
</entry>
|
|
91
|
+
</file>
|
|
92
|
+
<file leaf-file-name="principal.service.ts" pinned="false" current-in-tab="false">
|
|
93
|
+
<entry file="file://$PROJECT_DIR$/src/lib/principal.service.ts">
|
|
94
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
95
|
+
<state relative-caret-position="281">
|
|
96
|
+
<caret line="272" column="17" lean-forward="false" selection-start-line="272" selection-start-column="17" selection-end-line="272" selection-end-column="17" />
|
|
97
|
+
<folding />
|
|
98
|
+
</state>
|
|
99
|
+
</provider>
|
|
100
|
+
</entry>
|
|
101
|
+
</file>
|
|
102
|
+
<file leaf-file-name="package.json" pinned="false" current-in-tab="true">
|
|
103
|
+
<entry file="file://$PROJECT_DIR$/package.json">
|
|
104
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
105
|
+
<state relative-caret-position="74">
|
|
106
|
+
<caret line="2" column="20" lean-forward="false" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
|
107
|
+
<folding />
|
|
108
|
+
</state>
|
|
109
|
+
</provider>
|
|
110
|
+
</entry>
|
|
111
|
+
</file>
|
|
112
|
+
<file leaf-file-name="LICENSE" pinned="false" current-in-tab="false">
|
|
113
|
+
<entry file="file://$PROJECT_DIR$/LICENSE">
|
|
114
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
115
|
+
<state relative-caret-position="0">
|
|
116
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
117
|
+
<folding />
|
|
118
|
+
</state>
|
|
119
|
+
</provider>
|
|
120
|
+
</entry>
|
|
121
|
+
</file>
|
|
122
|
+
</leaf>
|
|
123
|
+
</component>
|
|
124
|
+
<component name="FindInProjectRecents">
|
|
125
|
+
<findStrings>
|
|
126
|
+
<find>delete</find>
|
|
127
|
+
<find>|</find>
|
|
128
|
+
<find>reject</find>
|
|
129
|
+
<find>res, re</find>
|
|
130
|
+
</findStrings>
|
|
131
|
+
</component>
|
|
15
132
|
<component name="Git.Settings">
|
|
16
133
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
17
134
|
</component>
|
|
135
|
+
<component name="IdeDocumentHistory">
|
|
136
|
+
<option name="CHANGED_PATHS">
|
|
137
|
+
<list>
|
|
138
|
+
<option value="$PROJECT_DIR$/src/lib/auth0/auth0.module.ts" />
|
|
139
|
+
<option value="$PROJECT_DIR$/src/index.ts" />
|
|
140
|
+
<option value="$PROJECT_DIR$/src/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.ts" />
|
|
141
|
+
<option value="$PROJECT_DIR$/src/lib/auth0/auth0.service.ts" />
|
|
142
|
+
<option value="$PROJECT_DIR$/src/lib/auth0/auth0.controller.ts" />
|
|
143
|
+
<option value="$PROJECT_DIR$/package.json" />
|
|
144
|
+
</list>
|
|
145
|
+
</option>
|
|
146
|
+
</component>
|
|
18
147
|
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
19
148
|
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER">
|
|
20
149
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
@@ -46,7 +175,6 @@
|
|
|
46
175
|
</navigator>
|
|
47
176
|
<panes>
|
|
48
177
|
<pane id="Scratches" />
|
|
49
|
-
<pane id="Scope" />
|
|
50
178
|
<pane id="ProjectPane">
|
|
51
179
|
<subPane>
|
|
52
180
|
<expand>
|
|
@@ -54,10 +182,16 @@
|
|
|
54
182
|
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
55
183
|
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
56
184
|
</path>
|
|
185
|
+
<path>
|
|
186
|
+
<item name="manticore-labs-nest" type="b2602c69:ProjectViewProjectNode" />
|
|
187
|
+
<item name="manticore-labs-nest" type="462c0819:PsiDirectoryNode" />
|
|
188
|
+
<item name="src" type="462c0819:PsiDirectoryNode" />
|
|
189
|
+
</path>
|
|
57
190
|
</expand>
|
|
58
191
|
<select />
|
|
59
192
|
</subPane>
|
|
60
193
|
</pane>
|
|
194
|
+
<pane id="Scope" />
|
|
61
195
|
</panes>
|
|
62
196
|
</component>
|
|
63
197
|
<component name="PropertiesComponent">
|
|
@@ -66,9 +200,15 @@
|
|
|
66
200
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="C:/Program Files/nodejs/node" />
|
|
67
201
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
68
202
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
69
|
-
<property name="node.js.path.for.package.tslint" value="
|
|
203
|
+
<property name="node.js.path.for.package.tslint" value="/usr/local/bin/node" />
|
|
70
204
|
<property name="node.js.detected.package.tslint" value="true" />
|
|
71
205
|
<property name="node.js.selected.package.tslint" value="$PROJECT_DIR$/node_modules/tslint" />
|
|
206
|
+
<property name="HbShouldOpenHtmlAsHb" value="" />
|
|
207
|
+
</component>
|
|
208
|
+
<component name="RecentsManager">
|
|
209
|
+
<key name="CopyFile.RECENT_KEYS">
|
|
210
|
+
<recent name="$PROJECT_DIR$/src/lib/auth0" />
|
|
211
|
+
</key>
|
|
72
212
|
</component>
|
|
73
213
|
<component name="RunDashboard">
|
|
74
214
|
<option name="ruleStates">
|
|
@@ -96,34 +236,37 @@
|
|
|
96
236
|
<option name="presentableId" value="Default" />
|
|
97
237
|
<updated>1542479731058</updated>
|
|
98
238
|
<workItem from="1542479733142" duration="229000" />
|
|
239
|
+
<workItem from="1546129337879" duration="2202000" />
|
|
99
240
|
</task>
|
|
100
241
|
<servers />
|
|
101
242
|
</component>
|
|
102
243
|
<component name="TimeTrackingManager">
|
|
103
|
-
<option name="totallyTimeSpent" value="
|
|
244
|
+
<option name="totallyTimeSpent" value="2431000" />
|
|
104
245
|
</component>
|
|
105
246
|
<component name="ToolWindowManager">
|
|
106
247
|
<frame x="0" y="0" width="1680" height="1050" extended-state="0" />
|
|
248
|
+
<editor active="true" />
|
|
107
249
|
<layout>
|
|
108
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
109
250
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
110
|
-
<window_info id="
|
|
111
|
-
<window_info id="
|
|
112
|
-
<window_info id="
|
|
113
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="
|
|
114
|
-
<window_info id="
|
|
251
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
|
252
|
+
<window_info id="NativeScript" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
253
|
+
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
254
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
255
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
256
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.50095236" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
257
|
+
<window_info id="TypeScript" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
258
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
259
|
+
<window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
115
260
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
116
|
-
<window_info id="
|
|
117
|
-
<window_info id="
|
|
261
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
262
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
118
263
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
119
|
-
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
120
264
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
121
265
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
122
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
123
266
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
124
|
-
<window_info id="
|
|
267
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
268
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
125
269
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
126
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
127
270
|
</layout>
|
|
128
271
|
</component>
|
|
129
272
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -136,6 +279,101 @@
|
|
|
136
279
|
<breakpoint-manager />
|
|
137
280
|
<watches-manager />
|
|
138
281
|
</component>
|
|
282
|
+
<component name="editorHistoryManager">
|
|
283
|
+
<entry file="file://$PROJECT_DIR$/tslint.json">
|
|
284
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
285
|
+
<state relative-caret-position="0">
|
|
286
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
287
|
+
<folding />
|
|
288
|
+
</state>
|
|
289
|
+
</provider>
|
|
290
|
+
</entry>
|
|
291
|
+
<entry file="file://$PROJECT_DIR$/src/lib/principal.service.ts">
|
|
292
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
293
|
+
<state relative-caret-position="281">
|
|
294
|
+
<caret line="272" column="17" lean-forward="false" selection-start-line="272" selection-start-column="17" selection-end-line="272" selection-end-column="17" />
|
|
295
|
+
<folding />
|
|
296
|
+
</state>
|
|
297
|
+
</provider>
|
|
298
|
+
</entry>
|
|
299
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/auth0.module.ts">
|
|
300
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
301
|
+
<state relative-caret-position="0">
|
|
302
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
303
|
+
<folding />
|
|
304
|
+
</state>
|
|
305
|
+
</provider>
|
|
306
|
+
</entry>
|
|
307
|
+
<entry file="file://$PROJECT_DIR$/src/lib/principal.dto.ts">
|
|
308
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
309
|
+
<state relative-caret-position="0">
|
|
310
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
311
|
+
<folding />
|
|
312
|
+
</state>
|
|
313
|
+
</provider>
|
|
314
|
+
</entry>
|
|
315
|
+
<entry file="file://$PROJECT_DIR$/src/index.ts">
|
|
316
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
317
|
+
<state relative-caret-position="111">
|
|
318
|
+
<caret line="3" column="74" lean-forward="false" selection-start-line="3" selection-start-column="74" selection-end-line="3" selection-end-column="74" />
|
|
319
|
+
<folding />
|
|
320
|
+
</state>
|
|
321
|
+
</provider>
|
|
322
|
+
</entry>
|
|
323
|
+
<entry file="file://$PROJECT_DIR$/LICENSE">
|
|
324
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
325
|
+
<state relative-caret-position="0">
|
|
326
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
327
|
+
<folding />
|
|
328
|
+
</state>
|
|
329
|
+
</provider>
|
|
330
|
+
</entry>
|
|
331
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto.ts">
|
|
332
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
333
|
+
<state relative-caret-position="518">
|
|
334
|
+
<caret line="14" column="1" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="14" selection-end-column="1" />
|
|
335
|
+
<folding />
|
|
336
|
+
</state>
|
|
337
|
+
</provider>
|
|
338
|
+
</entry>
|
|
339
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto.ts">
|
|
340
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
341
|
+
<state relative-caret-position="0">
|
|
342
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
343
|
+
<folding />
|
|
344
|
+
</state>
|
|
345
|
+
</provider>
|
|
346
|
+
</entry>
|
|
347
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/auth0.controller.ts">
|
|
348
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
349
|
+
<state relative-caret-position="-135">
|
|
350
|
+
<caret line="8" column="24" lean-forward="false" selection-start-line="8" selection-start-column="24" selection-end-line="8" selection-end-column="24" />
|
|
351
|
+
<folding>
|
|
352
|
+
<element signature="n#!!block;n#actualizarUsuarioPorPrimeraVez#0;n#PrincipalAuth0Controller#0" expanded="false" />
|
|
353
|
+
<element signature="n#!!block;n#actualizarCuenta#0;n#PrincipalAuth0Controller#0" expanded="false" />
|
|
354
|
+
</folding>
|
|
355
|
+
</state>
|
|
356
|
+
</provider>
|
|
357
|
+
</entry>
|
|
358
|
+
<entry file="file://$PROJECT_DIR$/src/lib/auth0/auth0.service.ts">
|
|
359
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
360
|
+
<state relative-caret-position="333">
|
|
361
|
+
<caret line="9" column="22" lean-forward="false" selection-start-line="9" selection-start-column="22" selection-end-line="9" selection-end-column="31" />
|
|
362
|
+
<folding>
|
|
363
|
+
<element signature="e#0#42#0" expanded="true" />
|
|
364
|
+
</folding>
|
|
365
|
+
</state>
|
|
366
|
+
</provider>
|
|
367
|
+
</entry>
|
|
368
|
+
<entry file="file://$PROJECT_DIR$/package.json">
|
|
369
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
370
|
+
<state relative-caret-position="74">
|
|
371
|
+
<caret line="2" column="20" lean-forward="false" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
|
372
|
+
<folding />
|
|
373
|
+
</state>
|
|
374
|
+
</provider>
|
|
375
|
+
</entry>
|
|
376
|
+
</component>
|
|
139
377
|
<component name="masterDetails">
|
|
140
378
|
<states>
|
|
141
379
|
<state key="ScopeChooserConfigurable.UI">
|
package/build/main/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './lib/auth0/auth0.controller';
|
|
2
|
+
export * from './lib/auth0/auth0.service';
|
|
3
|
+
export * from './lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto';
|
|
4
|
+
export * from './lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto';
|
|
1
5
|
export * from './lib/principal.entity';
|
|
2
6
|
export * from './lib/principal.service';
|
|
3
7
|
export * from './lib/principal.dto';
|
package/build/main/index.js
CHANGED
|
@@ -3,6 +3,10 @@ function __export(m) {
|
|
|
3
3
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
4
|
}
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
__export(require("./lib/auth0/auth0.controller"));
|
|
7
|
+
__export(require("./lib/auth0/auth0.service"));
|
|
8
|
+
__export(require("./lib/auth0/actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto"));
|
|
9
|
+
__export(require("./lib/auth0/actualizar-usuario-dto/actualizar-usuario-dto"));
|
|
6
10
|
__export(require("./lib/principal.entity"));
|
|
7
11
|
__export(require("./lib/principal.service"));
|
|
8
12
|
__export(require("./lib/principal.dto"));
|
|
@@ -10,4 +14,4 @@ __export(require("./lib/principal.controller"));
|
|
|
10
14
|
__export(require("./lib/principal.resolver"));
|
|
11
15
|
__export(require("./lib/principal.gateway"));
|
|
12
16
|
__export(require("./lib/funciones-util/typeorm/valor-esta-dentro-del-arreglo"));
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxrREFBNkM7QUFDN0MsK0NBQTBDO0FBQzFDLDZGQUF3RjtBQUN4RiwrRUFBMEU7QUFFMUUsNENBQXVDO0FBQ3ZDLDZDQUF3QztBQUN4Qyx5Q0FBb0M7QUFDcEMsZ0RBQTJDO0FBQzNDLDhDQUF5QztBQUN6Qyw2Q0FBd0M7QUFjeEMsZ0ZBQTJFIn0=
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const class_validator_1 = require("class-validator");
|
|
10
|
+
class ActualizarUsuarioCuentaDto {
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
class_validator_1.IsOptional(),
|
|
14
|
+
class_validator_1.IsEmail()
|
|
15
|
+
], ActualizarUsuarioCuentaDto.prototype, "email", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
class_validator_1.IsOptional(),
|
|
18
|
+
class_validator_1.IsString()
|
|
19
|
+
], ActualizarUsuarioCuentaDto.prototype, "name", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
class_validator_1.IsNotEmpty(),
|
|
22
|
+
class_validator_1.IsString()
|
|
23
|
+
], ActualizarUsuarioCuentaDto.prototype, "user_id", void 0);
|
|
24
|
+
exports.ActualizarUsuarioCuentaDto = ActualizarUsuarioCuentaDto;
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0dWFsaXphci11c3VhcmlvLWN1ZW50YS1kdG8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2F1dGgwL2FjdHVhbGl6YXItdXN1YXJpby1jdWVudGEtZHRvL2FjdHVhbGl6YXItdXN1YXJpby1jdWVudGEtZHRvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEscURBQTBFO0FBRTFFO0NBWUM7QUFURztJQUZDLDRCQUFVLEVBQUU7SUFDWix5QkFBTyxFQUFFO3lEQUNJO0FBSWQ7SUFGQyw0QkFBVSxFQUFFO0lBQ1osMEJBQVEsRUFBRTt3REFDRztBQUlkO0lBRkMsNEJBQVUsRUFBRTtJQUNaLDBCQUFRLEVBQUU7MkRBQ0s7QUFYcEIsZ0VBWUMifQ==
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const class_validator_1 = require("class-validator");
|
|
10
|
+
class ActualizarUsuarioDto {
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
class_validator_1.IsNotEmpty(),
|
|
14
|
+
class_validator_1.IsEmail()
|
|
15
|
+
], ActualizarUsuarioDto.prototype, "email", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
class_validator_1.IsNotEmpty(),
|
|
18
|
+
class_validator_1.IsString()
|
|
19
|
+
], ActualizarUsuarioDto.prototype, "name", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
class_validator_1.IsNotEmpty(),
|
|
22
|
+
class_validator_1.IsString()
|
|
23
|
+
], ActualizarUsuarioDto.prototype, "user_id", void 0);
|
|
24
|
+
exports.ActualizarUsuarioDto = ActualizarUsuarioDto;
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0dWFsaXphci11c3VhcmlvLWR0by5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvYXV0aDAvYWN0dWFsaXphci11c3VhcmlvLWR0by9hY3R1YWxpemFyLXVzdWFyaW8tZHRvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEscURBQThEO0FBRTlEO0NBWUM7QUFURztJQUZDLDRCQUFVLEVBQUU7SUFDWix5QkFBTyxFQUFFO21EQUNJO0FBSWQ7SUFGQyw0QkFBVSxFQUFFO0lBQ1osMEJBQVEsRUFBRTtrREFDRztBQUlkO0lBRkMsNEJBQVUsRUFBRTtJQUNaLDBCQUFRLEVBQUU7cURBQ0s7QUFYcEIsb0RBWUMifQ==
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InternalServerErrorException } from '@nestjs/common';
|
|
2
|
+
import { PrincipalAuth0Service } from './auth0.service';
|
|
3
|
+
export declare abstract class PrincipalAuth0Controller {
|
|
4
|
+
private readonly _auth0Service;
|
|
5
|
+
constructor(_auth0Service: PrincipalAuth0Service);
|
|
6
|
+
actualizarUsuarioPorPrimeraVez(email: any, name: any, user_id: any): Promise<InternalServerErrorException | {
|
|
7
|
+
mensaje: string;
|
|
8
|
+
}>;
|
|
9
|
+
actualizarCuenta(email: any, name: any, user_id: any): Promise<InternalServerErrorException | {
|
|
10
|
+
mensaje: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const actualizar_usuario_cuenta_dto_1 = require("./actualizar-usuario-cuenta-dto/actualizar-usuario-cuenta-dto");
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const actualizar_usuario_dto_1 = require("./actualizar-usuario-dto/actualizar-usuario-dto");
|
|
16
|
+
let PrincipalAuth0Controller = class PrincipalAuth0Controller {
|
|
17
|
+
constructor(_auth0Service) {
|
|
18
|
+
this._auth0Service = _auth0Service;
|
|
19
|
+
}
|
|
20
|
+
async actualizarUsuarioPorPrimeraVez(email, name, user_id) {
|
|
21
|
+
const actualizacionUsuario = new actualizar_usuario_dto_1.ActualizarUsuarioDto();
|
|
22
|
+
actualizacionUsuario.name = name;
|
|
23
|
+
actualizacionUsuario.email = email;
|
|
24
|
+
actualizacionUsuario.user_id = user_id;
|
|
25
|
+
const errores = await class_validator_1.validate(actualizacionUsuario);
|
|
26
|
+
const hayErrores = errores.length > 0;
|
|
27
|
+
if (hayErrores) {
|
|
28
|
+
throw new common_1.BadRequestException('No envia parametros');
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const objetoActualizar = {
|
|
32
|
+
email: actualizacionUsuario.email,
|
|
33
|
+
};
|
|
34
|
+
objetoActualizar.user_metadata = {
|
|
35
|
+
name: actualizacionUsuario.name,
|
|
36
|
+
roles: [1]
|
|
37
|
+
};
|
|
38
|
+
const respuestaUsuarioActualizado = await this._auth0Service
|
|
39
|
+
.findOneByIdAndUpdate(actualizacionUsuario.user_id, objetoActualizar);
|
|
40
|
+
if (respuestaUsuarioActualizado.error) {
|
|
41
|
+
return new common_1.InternalServerErrorException({ error: 500, mensaje: 'Error del servidor' });
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const respuestaEmailVerification = await this._auth0Service
|
|
45
|
+
.sendEmailVerification(actualizacionUsuario.user_id);
|
|
46
|
+
if (!respuestaEmailVerification.error) {
|
|
47
|
+
const respuestaCambioPassword = await this._auth0Service
|
|
48
|
+
.changePassword(actualizacionUsuario.email);
|
|
49
|
+
if (respuestaCambioPassword.error) {
|
|
50
|
+
return new common_1.InternalServerErrorException({ error: 500, mensaje: 'Error del servidor' });
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return { mensaje: 'Proceso inicial completado exitosamente.' };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return new common_1.InternalServerErrorException({ error: 500, mensaje: 'Error del servidor' });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async actualizarCuenta(email, name, user_id) {
|
|
63
|
+
const actualizacionUsuario = new actualizar_usuario_cuenta_dto_1.ActualizarUsuarioCuentaDto();
|
|
64
|
+
actualizacionUsuario.name = name;
|
|
65
|
+
actualizacionUsuario.email = email;
|
|
66
|
+
actualizacionUsuario.user_id = user_id;
|
|
67
|
+
const errores = await class_validator_1.validate(actualizacionUsuario);
|
|
68
|
+
const hayErrores = errores.length > 0;
|
|
69
|
+
if (hayErrores) {
|
|
70
|
+
throw new common_1.BadRequestException('No envia parametros');
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const objetoActualizar = {};
|
|
74
|
+
if (actualizacionUsuario.email) {
|
|
75
|
+
objetoActualizar.email = actualizacionUsuario.email;
|
|
76
|
+
}
|
|
77
|
+
if (actualizacionUsuario.name) {
|
|
78
|
+
objetoActualizar.user_metadata = {
|
|
79
|
+
name: actualizacionUsuario.name,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const respuestaUsuarioActualizado = await this._auth0Service
|
|
83
|
+
.findOneByIdAndUpdate(actualizacionUsuario.user_id, objetoActualizar);
|
|
84
|
+
if (respuestaUsuarioActualizado.error) {
|
|
85
|
+
return new common_1.InternalServerErrorException({ error: 500, mensaje: 'Error del servidor' });
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
if (objetoActualizar.email) {
|
|
89
|
+
const respuestaEmailVerification = await this._auth0Service
|
|
90
|
+
.sendEmailVerification(actualizacionUsuario.user_id);
|
|
91
|
+
if (respuestaEmailVerification.error) {
|
|
92
|
+
return new common_1.InternalServerErrorException({ error: 500, mensaje: 'Error del servidor' });
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return { mensaje: 'Cuenta actualizada. Revise su correo para confirmar su email.' };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return { mensaje: 'Cuenta actualizada.' };
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
__decorate([
|
|
106
|
+
common_1.HttpCode(200),
|
|
107
|
+
common_1.Post('actualizarUsuarioPorPrimeraVez'),
|
|
108
|
+
__param(0, common_1.Body('email')),
|
|
109
|
+
__param(1, common_1.Body('name')),
|
|
110
|
+
__param(2, common_1.Body('user_id'))
|
|
111
|
+
], PrincipalAuth0Controller.prototype, "actualizarUsuarioPorPrimeraVez", null);
|
|
112
|
+
__decorate([
|
|
113
|
+
common_1.HttpCode(200),
|
|
114
|
+
common_1.Post('actualizarCuenta'),
|
|
115
|
+
__param(0, common_1.Body('email')),
|
|
116
|
+
__param(1, common_1.Body('name')),
|
|
117
|
+
__param(2, common_1.Body('user_id'))
|
|
118
|
+
], PrincipalAuth0Controller.prototype, "actualizarCuenta", null);
|
|
119
|
+
PrincipalAuth0Controller = __decorate([
|
|
120
|
+
common_1.Controller('auth0')
|
|
121
|
+
], PrincipalAuth0Controller);
|
|
122
|
+
exports.PrincipalAuth0Controller = PrincipalAuth0Controller;
|
|
123
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aDAuY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvYXV0aDAvYXV0aDAuY29udHJvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBLGlIQUF5RztBQUN6RywyQ0FPd0I7QUFFeEIscURBQXlDO0FBQ3pDLDRGQUFxRjtBQUdyRixJQUFzQix3QkFBd0IsR0FBOUM7SUFDSSxZQUE2QixhQUFvQztRQUFwQyxrQkFBYSxHQUFiLGFBQWEsQ0FBdUI7SUFDakUsQ0FBQztJQUlELEtBQUssQ0FBQyw4QkFBOEIsQ0FBZ0IsS0FBSyxFQUNOLElBQUksRUFDRCxPQUFPO1FBQ3pELE1BQU0sb0JBQW9CLEdBQXlCLElBQUksNkNBQW9CLEVBQUUsQ0FBQztRQUM5RSxvQkFBb0IsQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pDLG9CQUFvQixDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7UUFDbkMsb0JBQW9CLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztRQUN2QyxNQUFNLE9BQU8sR0FBRyxNQUFNLDBCQUFRLENBQUMsb0JBQW9CLENBQUMsQ0FBQztRQUNyRCxNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQztRQUN0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QUFBO0lBQ2IsV0FBQSxhQUFJLENBQUMsTUFBTSxDQUFDLENBQUE7SUFDWixXQUFBLGFBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQTs4RUF5Q3BEO0FBSUQ7SUFGQyxpQkFBUSxDQUFDLEdBQUcsQ0FBQztJQUNiLGFBQUksQ0FBQyxrQkFBa0IsQ0FBQztJQUNELFdBQUEsYUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFBO0lBQ2IsV0FBQSxhQUFJLENBQUMsTUFBTSxDQUFDLENBQUE7SUFDWixXQUFBLGFBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQTtnRUF5Q3RDO0FBaEdpQix3QkFBd0I7SUFEN0MsbUJBQVUsQ0FBQyxPQUFPLENBQUM7R0FDRSx3QkFBd0IsQ0FpRzdDO0FBakdxQiw0REFBd0IifQ==
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ObjectID, FindManyOptions } from "typeorm";
|
|
2
|
+
import { UserData } from "auth0";
|
|
3
|
+
import { ErrorServicioInterface } from '../principal.service';
|
|
4
|
+
export declare abstract class PrincipalAuth0Service {
|
|
5
|
+
private readonly AUTH0_CONFIG;
|
|
6
|
+
private readonly search_engine;
|
|
7
|
+
private readonly sort;
|
|
8
|
+
private readonly debug;
|
|
9
|
+
managementClient: any;
|
|
10
|
+
authenticationClient: any;
|
|
11
|
+
constructor(AUTH0_CONFIG: any, search_engine?: string, sort?: string, debug?: boolean);
|
|
12
|
+
findOne(id?: string | number | Date | ObjectID): Promise<UsuarioEntity | ErrorServicioInterface>;
|
|
13
|
+
create(registro: UsuarioEntity): Promise<UserData | ErrorServicioInterface>;
|
|
14
|
+
find(criterioBusqueda?: FindManyOptions<UsuarioEntity>): Promise<UsuarioEntity[] | ErrorServicioInterface>;
|
|
15
|
+
findBy(arregloCamposABuscar: string[], busqueda: string): Promise<{}>;
|
|
16
|
+
findOneByIdAndUpdate(id: string | number | Date | ObjectID, datosAActualizar: UsuarioEntity): Promise<UsuarioEntity | ErrorServicioInterface>;
|
|
17
|
+
sendEmailVerification(id: string): Promise<{
|
|
18
|
+
mensaje: string;
|
|
19
|
+
error?: number;
|
|
20
|
+
}>;
|
|
21
|
+
changePassword(email: string, connection?: string): Promise<{
|
|
22
|
+
mensaje: string;
|
|
23
|
+
error?: number;
|
|
24
|
+
}>;
|
|
25
|
+
delete(id?: string | number | ObjectID): import("../../../../../../../../../../../Users/adrianeguez/Documents/Gitlab/manticore-labs/npm/nest/manticore-labs-nest/node_modules/rxjs/internal/Observable").Observable<{}>;
|
|
26
|
+
createMany(nuevosRegistros: UsuarioEntity[]): Promise<any>;
|
|
27
|
+
}
|
|
28
|
+
export interface UsuarioEntity extends UserData {
|
|
29
|
+
user_metadata?: any;
|
|
30
|
+
connection?: any;
|
|
31
|
+
name?: string;
|
|
32
|
+
email?: string;
|
|
33
|
+
username?: string;
|
|
34
|
+
password?: string;
|
|
35
|
+
}
|