@stackfactor/client-api 1.1.74 → 1.1.75

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/lib/role.js CHANGED
@@ -13,7 +13,6 @@ const createRole = (data, token) => {
13
13
  { data: data },
14
14
  {
15
15
  headers: { authorization: token },
16
- withCredentials: true,
17
16
  }
18
17
  );
19
18
  confirmationRequest
@@ -44,7 +43,6 @@ const createRoleFromTemplate = (templateId, data, token) => {
44
43
  requestData,
45
44
  {
46
45
  headers: { authorization: token },
47
- withCredentials: true,
48
46
  }
49
47
  );
50
48
  confirmationRequest
@@ -72,7 +70,7 @@ const deleteRole = (id, comments, token) => {
72
70
  if (comments) data.comments = comments;
73
71
  const request = client.delete(`api/v1/roles/`, {
74
72
  headers: { authorization: token },
75
- withCredentials: true,
73
+
76
74
  data: data,
77
75
  });
78
76
  request
@@ -96,7 +94,7 @@ const discardRoleChanges = (id, token) => {
96
94
  const data = {};
97
95
  const request = client.get(`api/v1/roles/discard/${id}`, {
98
96
  headers: { authorization: token },
99
- withCredentials: true,
97
+
100
98
  data: data,
101
99
  });
102
100
  request
@@ -118,7 +116,6 @@ const getImportedRoleTemplates = (token) => {
118
116
  return new Promise(function (resolve, reject) {
119
117
  const request = client.get(`api/v1/roles/getimportedroletemplates`, {
120
118
  headers: { authorization: token },
121
- withCredentials: true,
122
119
  });
123
120
  request
124
121
 
@@ -150,7 +147,6 @@ const getRoleInformationById = (
150
147
  `api/v1/roles/role/${id}/${version}/${returnNullIfVersionNotFound}`,
151
148
  {
152
149
  headers: { authorization: token },
153
- withCredentials: true,
154
150
  }
155
151
  );
156
152
  confirmationRequest
@@ -194,7 +190,6 @@ const getRolesList = (
194
190
  if (filter) requestData.filter = filter;
195
191
  let confirmationRequest = client.post(`api/v1/roles`, requestData, {
196
192
  headers: { authorization: token },
197
- withCredentials: true,
198
193
  });
199
194
  confirmationRequest
200
195
  .then((response) => {
@@ -218,7 +213,6 @@ const getRoleTemplateUpdates = (id, token) => {
218
213
  `api/v1/roles/getroletemplateupdates/${id}`,
219
214
  {
220
215
  headers: { authorization: token },
221
- withCredentials: true,
222
216
  }
223
217
  );
224
218
  confirmationRequest
@@ -247,7 +241,6 @@ const importRoleTemplates = (data, token) => {
247
241
  requestData,
248
242
  {
249
243
  headers: { authorization: token },
250
- withCredentials: true,
251
244
  }
252
245
  );
253
246
  confirmationRequest
@@ -274,7 +267,6 @@ const publishRole = (id, comments, token) => {
274
267
  if (comments) data.comments = comments;
275
268
  let confirmationRequest = client.post(`api/v1/roles/publish/${id}`, data, {
276
269
  headers: { authorization: token },
277
- withCredentials: true,
278
270
  });
279
271
  confirmationRequest
280
272
  .then((response) => {
@@ -301,7 +293,6 @@ const setRoleInformation = (id, data, token) => {
301
293
  };
302
294
  let confirmationRequest = client.post(`api/v1/roles/update`, requestData, {
303
295
  headers: { authorization: token },
304
- withCredentials: true,
305
296
  });
306
297
  confirmationRequest
307
298
  .then((response) => {
@@ -331,7 +322,6 @@ const setRoleInformationFromTemplate = (id, data, token) => {
331
322
  requestData,
332
323
  {
333
324
  headers: { authorization: token },
334
- withCredentials: true,
335
325
  }
336
326
  );
337
327
  confirmationRequest
@@ -361,7 +351,6 @@ const setUserRoles = (id, roles, jobDescription, token) => {
361
351
  if (id) requestData.userid = id;
362
352
  let request = client.post(`api/v1/roles/settouser/`, requestData, {
363
353
  headers: { authorization: token },
364
- withCredentials: true,
365
354
  });
366
355
  request
367
356
  .then((response) => {
@@ -388,7 +377,6 @@ const watchRole = (id, watch, token) => {
388
377
  };
389
378
  let confirmationRequest = client.post(`api/v1/roles/watch`, requestData, {
390
379
  headers: { authorization: token },
391
- withCredentials: true,
392
380
  });
393
381
  confirmationRequest
394
382
  .then((response) => {
@@ -12,7 +12,6 @@ const createRoleTemplate = (data, token) => {
12
12
  };
13
13
  let confirmationRequest = client.put("api/v1/roletemplates", requestData, {
14
14
  headers: { authorization: token },
15
- withCredentials: true,
16
15
  });
17
16
  confirmationRequest
18
17
  .then((response) => {
@@ -38,7 +37,7 @@ const deleteRoleTemplate = (id, comments, token) => {
38
37
  if (comments) data.comments = comments;
39
38
  const request = client.delete(`api/v1/roletemplates/`, {
40
39
  headers: { authorization: token },
41
- withCredentials: true,
40
+
42
41
  data: data,
43
42
  });
44
43
  request
@@ -61,7 +60,7 @@ const discardRoleTemplateChanges = (id, token) => {
61
60
  const data = {};
62
61
  const request = client.get(`api/v1/roletemplates/discard/${id}`, {
63
62
  headers: { authorization: token },
64
- withCredentials: true,
63
+
65
64
  data: data,
66
65
  });
67
66
  request
@@ -85,7 +84,6 @@ const getRoleTemplateInformationById = (id, version, token) => {
85
84
  `api/v1/roletemplates/${id}/${version}`,
86
85
  {
87
86
  headers: { authorization: token },
88
- withCredentials: true,
89
87
  }
90
88
  );
91
89
  confirmationRequest
@@ -122,7 +120,6 @@ const getRoleTemplateList = (
122
120
  if (filter) requestData.filter = filter;
123
121
  let confirmationRequest = client.post(`api/v1/roletemplates`, requestData, {
124
122
  headers: { authorization: token },
125
- withCredentials: true,
126
123
  });
127
124
  confirmationRequest
128
125
  .then((response) => {
@@ -149,7 +146,6 @@ const publishTemplate = (id, comments, token) => {
149
146
  data,
150
147
  {
151
148
  headers: { authorization: token },
152
- withCredentials: true,
153
149
  }
154
150
  );
155
151
  confirmationRequest
@@ -179,7 +175,6 @@ const setTemplateInformation = (id, data, token) => {
179
175
  requestData,
180
176
  {
181
177
  headers: { authorization: token },
182
- withCredentials: true,
183
178
  }
184
179
  );
185
180
  confirmationRequest
@@ -209,7 +204,6 @@ const setTemplateTags = (id, tags, token) => {
209
204
  requestData,
210
205
  {
211
206
  headers: { authorization: token },
212
- withCredentials: true,
213
207
  }
214
208
  );
215
209
  confirmationRequest
@@ -239,7 +233,6 @@ const watchRoleTemplate = (id, watch, token) => {
239
233
  requestData,
240
234
  {
241
235
  headers: { authorization: token },
242
- withCredentials: true,
243
236
  }
244
237
  );
245
238
  confirmationRequest
package/lib/skill.js CHANGED
@@ -13,7 +13,6 @@ const createSkill = (data, token) => {
13
13
  { data: data },
14
14
  {
15
15
  headers: { authorization: token },
16
- withCredentials: true,
17
16
  }
18
17
  );
19
18
  confirmationRequest
@@ -42,7 +41,6 @@ const createSkillsFromTemplates = (templateIds, token) => {
42
41
  requestData,
43
42
  {
44
43
  headers: { authorization: token },
45
- withCredentials: true,
46
44
  }
47
45
  );
48
46
  confirmationRequest
@@ -70,7 +68,7 @@ const deleteSkill = (id, comments, token) => {
70
68
  if (comments) data.comments = comments;
71
69
  const request = client.delete(`api/v1/skills/`, {
72
70
  headers: { authorization: token },
73
- withCredentials: true,
71
+
74
72
  data: data,
75
73
  });
76
74
  request
@@ -94,7 +92,7 @@ const discardSkillChanges = (id, token) => {
94
92
  const data = {};
95
93
  const request = client.get(`api/v1/skills/discard/${id}`, {
96
94
  headers: { authorization: token },
97
- withCredentials: true,
95
+
98
96
  data: data,
99
97
  });
100
98
  request
@@ -116,7 +114,6 @@ const getImportedSkillTemplates = (token) => {
116
114
  return new Promise(function (resolve, reject) {
117
115
  const request = client.get(`api/v1/skills/getimportedskilltemplates`, {
118
116
  headers: { authorization: token },
119
- withCredentials: true,
120
117
  });
121
118
  request
122
119
 
@@ -141,7 +138,6 @@ const getSkillRelatedRoles = (id, token) => {
141
138
  `api/v1/skills/getskillrelatedroles/${id}`,
142
139
  {
143
140
  headers: { authorization: token },
144
- withCredentials: true,
145
141
  }
146
142
  );
147
143
  confirmationRequest
@@ -166,7 +162,6 @@ const getSkillRequiredAssessmentType = (id, token) => {
166
162
  `api/v1/skills/getrequiredassessmenttype/${id}`,
167
163
  {
168
164
  headers: { authorization: token },
169
- withCredentials: true,
170
165
  }
171
166
  );
172
167
  confirmationRequest
@@ -198,7 +193,6 @@ const getSkillInformationById = (
198
193
  `api/v1/skills/skill/${id}/${version}/${returnNullIfVersionNotFound}`,
199
194
  {
200
195
  headers: { authorization: token },
201
- withCredentials: true,
202
196
  }
203
197
  );
204
198
  confirmationRequest
@@ -239,7 +233,6 @@ const getSkillList = (
239
233
  if (filter) requestData.filter = filter;
240
234
  let confirmationRequest = client.post(`api/v1/skills`, requestData, {
241
235
  headers: { authorization: token },
242
- withCredentials: true,
243
236
  });
244
237
  confirmationRequest
245
238
  .then((response) => {
@@ -270,7 +263,6 @@ const getTeamSkillsById = (
270
263
  `api/v1/skills/getteambyid/${teamId}/${maxDepth}/${returnNullIfVersionNotFound}`,
271
264
  {
272
265
  headers: { authorization: token },
273
- withCredentials: true,
274
266
  }
275
267
  );
276
268
  confirmationRequest
@@ -295,7 +287,6 @@ const getCurrentUserTeamSkills = (maxDepth, token) => {
295
287
  `api/v1/skills/getcurrentuserteam/${maxDepth}`,
296
288
  {
297
289
  headers: { authorization: token },
298
- withCredentials: true,
299
290
  }
300
291
  );
301
292
  confirmationRequest
@@ -320,7 +311,6 @@ const getSkillTemplateUpdates = (id, token) => {
320
311
  `api/v1/skills/getskilltemplateupdates/${id}`,
321
312
  {
322
313
  headers: { authorization: token },
323
- withCredentials: true,
324
314
  }
325
315
  );
326
316
  confirmationRequest
@@ -351,7 +341,6 @@ const importSkillTemplates = (data, publish, token) => {
351
341
  requestData,
352
342
  {
353
343
  headers: { authorization: token },
354
- withCredentials: true,
355
344
  }
356
345
  );
357
346
  confirmationRequest
@@ -378,7 +367,6 @@ const publishSkill = (id, comments, token) => {
378
367
  if (comments) data.comments = comments;
379
368
  let confirmationRequest = client.post(`api/v1/skills/publish/${id}`, data, {
380
369
  headers: { authorization: token },
381
- withCredentials: true,
382
370
  });
383
371
  confirmationRequest
384
372
  .then((response) => {
@@ -408,7 +396,6 @@ const setSkillInformation = (id, data, token) => {
408
396
  requestData,
409
397
  {
410
398
  headers: { authorization: token },
411
- withCredentials: true,
412
399
  }
413
400
  );
414
401
  confirmationRequest
@@ -439,7 +426,6 @@ const setSkillInformationFromTemplate = (id, data, token) => {
439
426
  requestData,
440
427
  {
441
428
  headers: { authorization: token },
442
- withCredentials: true,
443
429
  }
444
430
  );
445
431
  confirmationRequest
@@ -468,7 +454,6 @@ const validateSkill = (id, token) => {
468
454
  requestData,
469
455
  {
470
456
  headers: { authorization: token },
471
- withCredentials: true,
472
457
  }
473
458
  );
474
459
  confirmationRequest
@@ -496,7 +481,6 @@ const watchSkill = (id, watch, token) => {
496
481
  };
497
482
  let confirmationRequest = client.post(`api/v1/skills/watch`, requestData, {
498
483
  headers: { authorization: token },
499
- withCredentials: true,
500
484
  });
501
485
  confirmationRequest
502
486
  .then((response) => {
@@ -12,7 +12,6 @@ const endSession = (testingSessionId, token) => {
12
12
  { id: testingSessionId },
13
13
  {
14
14
  headers: { authorization: token },
15
- withCredentials: true,
16
15
  }
17
16
  );
18
17
  confirmationRequest
@@ -42,7 +41,6 @@ const getNextStep = (testingSessionId, selectedAnswers, token) => {
42
41
  data,
43
42
  {
44
43
  headers: { authorization: token },
45
- withCredentials: true,
46
44
  }
47
45
  );
48
46
  confirmationRequest
@@ -72,7 +70,6 @@ const getSkillTestAssessment = (userId, skillId, token) => {
72
70
  },
73
71
  {
74
72
  headers: { authorization: token },
75
- withCredentials: true,
76
73
  }
77
74
  );
78
75
  confirmationRequest
@@ -100,7 +97,6 @@ const pause = (testingSessionId, token) => {
100
97
  },
101
98
  {
102
99
  headers: { authorization: token },
103
- withCredentials: true,
104
100
  }
105
101
  );
106
102
  confirmationRequest
@@ -129,7 +125,6 @@ const startSession = (skillId, saveSession, token) => {
129
125
  },
130
126
  {
131
127
  headers: { authorization: token },
132
- withCredentials: true,
133
128
  }
134
129
  );
135
130
  confirmationRequest
@@ -19,7 +19,6 @@ const addEntry = (id, data, comments, token) => {
19
19
  requestData,
20
20
  {
21
21
  headers: { authorization: token },
22
- withCredentials: true,
23
22
  }
24
23
  );
25
24
  confirmationRequest
@@ -51,7 +50,6 @@ const create = (data, comments, userId, token) => {
51
50
  requestData,
52
51
  {
53
52
  headers: { authorization: token },
54
- withCredentials: true,
55
53
  }
56
54
  );
57
55
  confirmationRequest
@@ -78,7 +76,7 @@ const deleteSkillAssessment = (id, comments, token) => {
78
76
  if (comments) data.comments = comments;
79
77
  const request = client.delete(`api/v1/skillassessments`, {
80
78
  headers: { authorization: token },
81
- withCredentials: true,
79
+
82
80
  data: data,
83
81
  });
84
82
  request
@@ -100,7 +98,6 @@ const getById = (id, token) => {
100
98
  return new Promise(function (resolve, reject) {
101
99
  let confirmationRequest = client.get(`api/v1/skillassessments/${id}`, {
102
100
  headers: { authorization: token },
103
- withCredentials: true,
104
101
  });
105
102
  confirmationRequest
106
103
  .then((response) => {
@@ -126,7 +123,6 @@ const getList = (userId, token) => {
126
123
  requestData,
127
124
  {
128
125
  headers: { authorization: token },
129
- withCredentials: true,
130
126
  }
131
127
  );
132
128
  confirmationRequest
@@ -12,7 +12,6 @@ const createSkillTemplate = (data, token) => {
12
12
  };
13
13
  let confirmationRequest = client.put("api/v1/skilltemplates", requestData, {
14
14
  headers: { authorization: token },
15
- withCredentials: true,
16
15
  });
17
16
  confirmationRequest
18
17
  .then((response) => {
@@ -38,7 +37,7 @@ const deleteSkillTemplate = (id, comments, token) => {
38
37
  return new Promise(function (resolve, reject) {
39
38
  const request = client.delete(`api/v1/skilltemplates/`, {
40
39
  headers: { authorization: token },
41
- withCredentials: true,
40
+
42
41
  data: data,
43
42
  });
44
43
  request
@@ -61,7 +60,7 @@ const discardSkillTemplateChanges = (id, token) => {
61
60
  const data = {};
62
61
  const request = client.get(`api/v1/skilltemplates/discard/${id}`, {
63
62
  headers: { authorization: token },
64
- withCredentials: true,
63
+
65
64
  data: data,
66
65
  });
67
66
  request
@@ -92,7 +91,6 @@ const getSkillTemplateInformationById = (
92
91
  `api/v1/skilltemplates/${id}/${version}/${returnNullIfVersionNotFound}`,
93
92
  {
94
93
  headers: { authorization: token },
95
- withCredentials: true,
96
94
  }
97
95
  );
98
96
  confirmationRequest
@@ -132,7 +130,6 @@ const getSkillTemplateList = (
132
130
  requestData,
133
131
  {
134
132
  headers: { authorization: token },
135
- withCredentials: true,
136
133
  }
137
134
  );
138
135
  confirmationRequest
@@ -153,7 +150,6 @@ const getTechnologyStacks = (token) => {
153
150
  return new Promise(function (resolve, reject) {
154
151
  let confirmationRequest = client.get(`api/v1/skilltemplates/stacks`, {
155
152
  headers: { authorization: token },
156
- withCredentials: true,
157
153
  });
158
154
  confirmationRequest
159
155
  .then((response) => {
@@ -180,7 +176,6 @@ const publishTemplate = (id, comments, token) => {
180
176
  data,
181
177
  {
182
178
  headers: { authorization: token },
183
- withCredentials: true,
184
179
  }
185
180
  );
186
181
  confirmationRequest
@@ -210,7 +205,6 @@ const setTemplateInformation = (id, data, token) => {
210
205
  requestData,
211
206
  {
212
207
  headers: { authorization: token },
213
- withCredentials: true,
214
208
  }
215
209
  );
216
210
  confirmationRequest
@@ -240,7 +234,6 @@ const setTemplateTags = (id, tags, token) => {
240
234
  requestData,
241
235
  {
242
236
  headers: { authorization: token },
243
- withCredentials: true,
244
237
  }
245
238
  );
246
239
  confirmationRequest
@@ -269,7 +262,6 @@ const validateTemplate = (id, token) => {
269
262
  requestData,
270
263
  {
271
264
  headers: { authorization: token },
272
- withCredentials: true,
273
265
  }
274
266
  );
275
267
  confirmationRequest
@@ -299,7 +291,6 @@ const watchSkillTemplate = (id, watch, token) => {
299
291
  requestData,
300
292
  {
301
293
  headers: { authorization: token },
302
- withCredentials: true,
303
294
  }
304
295
  );
305
296
  confirmationRequest
@@ -12,9 +12,8 @@ const getTalentTransformationStepsForCurrentUser = (authToken) => {
12
12
  authToken
13
13
  ? {
14
14
  headers: { authorization: authToken },
15
- withCredentials: true,
16
15
  }
17
- : { withCredentials: true }
16
+ : {}
18
17
  );
19
18
  request
20
19
  .then((response) => {
@@ -51,7 +50,6 @@ const setTalentTransformationStepData = (
51
50
  requestData,
52
51
  {
53
52
  headers: { authorization: token },
54
- withCredentials: true,
55
53
  }
56
54
  );
57
55
  confirmationRequest
package/lib/teams.js CHANGED
@@ -14,7 +14,7 @@ const addUsersToTeam = (teamId, users, authToken) => {
14
14
  teamId: teamId,
15
15
  users: users,
16
16
  },
17
- { headers: { authorization: authToken }, withCredentials: true }
17
+ { headers: { authorization: authToken } }
18
18
  );
19
19
  request
20
20
  .then((response) => {
@@ -42,7 +42,7 @@ const createTeam = (name, managerId, description, authToken) => {
42
42
  managerId: managerId,
43
43
  description: description,
44
44
  },
45
- { headers: { authorization: authToken }, withCredentials: true }
45
+ { headers: { authorization: authToken } }
46
46
  );
47
47
  request
48
48
  .then((response) => {
@@ -64,7 +64,7 @@ const deleteTeam = (teamId, defaultTeamId, authToken) => {
64
64
  return new Promise(function (resolve, reject) {
65
65
  const request = client.delete(`api/v1/teams/delete`, {
66
66
  headers: { authorization: authToken },
67
- withCredentials: true,
67
+
68
68
  data: {
69
69
  id: teamId,
70
70
  defaultTeamId: defaultTeamId,
@@ -93,7 +93,7 @@ const getTeamById = (teamId, includeUserSummaryInformation, authToken) => {
93
93
  {
94
94
  includeUserSummaryInformation: includeUserSummaryInformation,
95
95
  },
96
- { headers: { authorization: authToken }, withCredentials: true }
96
+ { headers: { authorization: authToken } }
97
97
  );
98
98
  request
99
99
  .then((response) => {
@@ -114,7 +114,6 @@ const getTeamByIdRoles = (teamId, authToken) => {
114
114
  return new Promise(function (resolve, reject) {
115
115
  const request = client.get(`api/v1/teams/getroles/${teamId}`, {
116
116
  headers: { authorization: authToken },
117
- withCredentials: true,
118
117
  });
119
118
  request
120
119
  .then((response) => {
@@ -135,7 +134,6 @@ const getTeams = (authToken) => {
135
134
  return new Promise(function (resolve, reject) {
136
135
  const request = client.get(`api/v1/teams/`, {
137
136
  headers: { authorization: authToken },
138
- withCredentials: true,
139
137
  });
140
138
  request
141
139
  .then((response) => {
@@ -160,7 +158,7 @@ const getTeamByUserId = (userId, includeUserSummaryInformation, authToken) => {
160
158
  {
161
159
  includeUserSummaryInformation: includeUserSummaryInformation,
162
160
  },
163
- { headers: { authorization: authToken }, withCredentials: true }
161
+ { headers: { authorization: authToken } }
164
162
  );
165
163
  request
166
164
  .then((response) => {
@@ -184,7 +182,7 @@ const getTopTeam = (includeUserSummaryInformation, authToken) => {
184
182
  {
185
183
  includeUserSummaryInformation: includeUserSummaryInformation,
186
184
  },
187
- { headers: { authorization: authToken }, withCredentials: true }
185
+ { headers: { authorization: authToken } }
188
186
  );
189
187
  request
190
188
  .then((response) => {
@@ -210,7 +208,7 @@ const removeUsersFromTeam = (teamId, users, authToken) => {
210
208
  teamId: teamId,
211
209
  users: users,
212
210
  },
213
- { headers: { authorization: authToken }, withCredentials: true }
211
+ { headers: { authorization: authToken } }
214
212
  );
215
213
  request
216
214
  .then((response) => {
@@ -234,7 +232,7 @@ const setDefault = (teamId, authToken) => {
234
232
  {
235
233
  id: teamId,
236
234
  },
237
- { headers: { authorization: authToken }, withCredentials: true }
235
+ { headers: { authorization: authToken } }
238
236
  );
239
237
  request
240
238
  .then((response) => {
@@ -260,7 +258,7 @@ const updateTeam = (teamId, data, authToken) => {
260
258
  id: teamId,
261
259
  data: data,
262
260
  },
263
- { headers: { authorization: authToken }, withCredentials: true }
261
+ { headers: { authorization: authToken } }
264
262
  );
265
263
  request
266
264
  .then((response) => {
package/lib/tenants.js CHANGED
@@ -12,7 +12,6 @@ const getTenantInformation = (categories, token) => {
12
12
  };
13
13
  let request = client.post("api/v1/tenants/tenant/get", requestData, {
14
14
  headers: { authorization: token },
15
- withCredentials: true,
16
15
  });
17
16
  request
18
17
  .then((response) => {
@@ -41,7 +40,6 @@ const setTenantInformation = (category, data, token) => {
41
40
  requestData,
42
41
  {
43
42
  headers: { authorization: token },
44
- withCredentials: true,
45
43
  }
46
44
  );
47
45
  confirmationRequest