@or-sdk/hitl 0.25.2 → 0.25.3-303.0

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.
@@ -45,24 +45,23 @@ var Conferences = (function (_super) {
45
45
  params: params,
46
46
  });
47
47
  };
48
- Conferences.addConferenceMember = function (options) {
48
+ Conferences.addOrUpdateConferenceMember = function (options) {
49
49
  var route = this.getBaseUrl(options);
50
- var data = lodash_1.default.pick(options, ['hitlSessionId', 'memberId', 'identifier', 'type', 'status']);
50
+ var data = lodash_1.default.pick(options, [
51
+ 'hitlSessionId',
52
+ 'memberId',
53
+ 'identifier',
54
+ 'type',
55
+ 'status',
56
+ 'state',
57
+ 'disconnectedAt',
58
+ ]);
51
59
  return this.request({
52
60
  method: 'POST',
53
61
  route: route,
54
62
  data: data,
55
63
  });
56
64
  };
57
- Conferences.updateConferenceMember = function (options) {
58
- var route = this.getBaseUrl(options);
59
- var data = lodash_1.default.pick(options, ['hitlSessionId', 'memberId', 'identifier', 'status', 'state', 'disconnectedAt']);
60
- return this.request({
61
- method: 'PUT',
62
- route: route,
63
- data: data,
64
- });
65
- };
66
65
  Conferences.cleanUpConference = function (options) {
67
66
  var route = this.getBaseUrl(options);
68
67
  var params = lodash_1.default.pick(options, ['hitlSessionId', 'memberId']);
@@ -1 +1 @@
1
- {"version":3,"file":"Conferences.js","sourceRoot":"","sources":["../../../src/api/Conferences.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuB;AAWvB,uCAAsC;AAEtC;IAAiC,+BAAQ;IAAzC;;IA4DA,CAAC;IAzDe,gCAAoB,GAAlC,UACE,OAAoC;QAEpC,IAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,IAAM,MAAM,GAAG,gBAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC;QAE9D,OAAO,I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AC,CAAC,CAAC;QAE9D,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,QAAQ;YAChB,KAAK,OAAA;YACL,MAAM,QAAA;SACP,CAAC,CAAC;IACL,CAAC;IAEgB,sBAAU,GAA3B,UAA4B,OAA0B;QACpD,OAAO,mBAAQ,CAAC,UAAU,uBACrB,OAAO,KACV,MAAM,EAAE,IAAI,CAAC,UAAU,IACvB,CAAC;IACL,CAAC;IArDgB,sBAAU,GAAG,aAAa,CAAC;IAsD9C,kBAAC;CAAA,AAvDD,CAAiC,mBAAQ,GAuDxC;AAvDY,kCAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../src/types/conferences.ts"],"names":[],"mappings":";;;AAAA,2DAA6F;AAgBpF,iGAhBa,iCAAgB,OAgBb;AAAE,mGAhBa,mCAAkB,OAgBb"}
1
+ {"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../src/types/conferences.ts"],"names":[],"mappings":";;;AAAA,2DAA6F;AAcpF,iGAda,iCAAgB,OAcb;AAAE,mGAda,mCAAkB,OAcb"}
@@ -9,24 +9,23 @@ export class Conferences extends HITLBase {
9
9
  params,
10
10
  });
11
11
  }
12
- static addConferenceMember(options) {
12
+ static addOrUpdateConferenceMember(options) {
13
13
  const route = this.getBaseUrl(options);
14
- const data = _.pick(options, ['hitlSessionId', 'memberId', 'identifier', 'type', 'status']);
14
+ const data = _.pick(options, [
15
+ 'hitlSessionId',
16
+ 'memberId',
17
+ 'identifier',
18
+ 'type',
19
+ 'status',
20
+ 'state',
21
+ 'disconnectedAt',
22
+ ]);
15
23
  return this.request({
16
24
  method: 'POST',
17
25
  route,
18
26
  data,
19
27
  });
20
28
  }
21
- static updateConferenceMember(options) {
22
- const route = this.getBaseUrl(options);
23
- const data = _.pick(options, ['hitlSessionId', 'memberId', 'identifier', 'status', 'state', 'disconnectedAt']);
24
- return this.request({
25
- method: 'PUT',
26
- route,
27
- data,
28
- });
29
- }
30
29
  static cleanUpConference(options) {
31
30
  const route = this.getBaseUrl(options);
32
31
  const params = _.pick(options, ['hitlSessionId', 'memberId']);
@@ -1 +1 @@
1
- {"version":3,"file":"Conferences.js","sourceRoot":"","sources":["../../../src/api/Conferences.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAWvB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,WAAY,SAAQ,QAAQ;IAGhC,MAAM,CAAC,oBAAoB,CAChC,OAAoC;QAEpC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC;QAE9D,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,KAAK;YACL,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,mBAAmB,CAC/B,OAAsC;QAEtC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;QAE5F,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK;YACL,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAClC,OAAsC;QAEtC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC;QAE/G,OAAO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C,CAAC,IAAI,CAAC,OAAO,EAAE;YAC3B,eAAe;YACf,UAAU;YACV,YAAY;YACZ,MAAM;YACN,QAAQ;YACR,OAAO;YACP,gBAAgB;SACjB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK;YACL,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,iBAAiB,CAC7B,OAAiC;QAEjC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC;QAE9D,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,QAAQ;YAChB,KAAK;YACL,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAES,MAAM,CAAC,UAAU,CAAC,OAA0B;QACpD,OAAO,QAAQ,CAAC,UAAU,iCACrB,OAAO,KACV,MAAM,EAAE,IAAI,CAAC,UAAU,IACvB,CAAC;IACL,CAAC;;AArDgB,sBAAU,GAAG,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../src/types/conferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAgB7F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"conferences.js","sourceRoot":"","sources":["../../../src/types/conferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAc7F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import { ApiVersionOptions } from '../types';
2
- import { GetConferenceMembersOptions, GetConferenceMembersResponse, Conference, CreateConferenceMemberOptions, UpdateConferenceMemberOptions, CleanUpConferenceOptions } from '../types/conferences';
2
+ import { GetConferenceMembersOptions, GetConferenceMembersResponse, Conference, AddOrUpdateConferenceMemberOptions, CleanUpConferenceOptions } from '../types/conferences';
3
3
  import { HITLBase } from './HITLBase';
4
4
  export declare class Conferences extends HITLBase {
5
5
  protected static MODULE_URL: string;
6
6
  static getConferenceMembers(options: GetConferenceMembersOptions): Promise<GetConferenceMembersResponse | Conference>;
7
- static addConferenceMember(options: CreateConferenceMemberOptions): Promise<Conference>;
8
- static updateConferenceMember(options: UpdateConferenceMemberOptions): Promise<Conference>;
7
+ static addOrUpdateConferenceMember(options: AddOrUpdateConferenceMemberOptions): Promise<Conference>;
9
8
  static cleanUpConference(options: CleanUpConferenceOptions): Promise<void>;
10
9
  protected static getBaseUrl(options: ApiVersionOptions): string;
11
10
  }
@@ -3,7 +3,6 @@ import { ApiVersionOptions, NoAccountId } from './common';
3
3
  export declare type GetConferenceMembersOptions = ApiVersionOptions & NoAccountId<Conferences.IGetConferenceMembersQuery>;
4
4
  export declare type GetConferenceMembersResponse = Conferences.IGetConferenceMembersResponse;
5
5
  export declare type Conference = Conferences.IConferencesModel;
6
- export declare type CreateConferenceMemberOptions = ApiVersionOptions & Conferences.IAddConferenceMemberBody;
7
- export declare type UpdateConferenceMemberOptions = ApiVersionOptions & Conferences.IUpdateConferenceMemberBody;
6
+ export declare type AddOrUpdateConferenceMemberOptions = ApiVersionOptions & Conferences.IAddOrUpdateConferenceMemberBody;
8
7
  export declare type CleanUpConferenceOptions = ApiVersionOptions & NoAccountId<Conferences.ICleanUpConferenceQuery>;
9
8
  export { CALL_MEMBER_TYPE, CALL_MEMBER_STATUS };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.25.2",
2
+ "version": "0.25.3-303.0",
3
3
  "name": "@or-sdk/hitl",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -23,11 +23,10 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@onereach/types-hitl-api": "^0.0.21",
26
+ "@onereach/types-hitl-api": "^0.0.22",
27
27
  "@or-sdk/base": "^0.23.0",
28
28
  "@types/lodash": "^4.14.178",
29
29
  "@types/urijs": "^1.19.18",
30
30
  "urijs": "^1.19.8"
31
- },
32
- "gitHead": "4b722984086902d2f7588e7c3fa43ccff17fc9f6"
31
+ }
33
32
  }
@@ -5,8 +5,7 @@ import {
5
5
  GetConferenceMembersOptions,
6
6
  GetConferenceMembersResponse,
7
7
  Conference,
8
- CreateConferenceMemberOptions,
9
- UpdateConferenceMemberOptions,
8
+ AddOrUpdateConferenceMemberOptions,
10
9
  CleanUpConferenceOptions,
11
10
  } from '../types/conferences';
12
11
  import { HITLBase } from './HITLBase';
@@ -26,11 +25,19 @@ export class Conferences extends HITLBase {
26
25
  });
27
26
  }
28
27
 
29
- public static addConferenceMember(
30
- options: CreateConferenceMemberOptions
28
+ public static addOrUpdateConferenceMember(
29
+ options: AddOrUpdateConferenceMemberOptions
31
30
  ): Promise<Conference> {
32
31
  const route = this.getBaseUrl(options);
33
- const data = _.pick(options, ['hitlSessionId', 'memberId', 'identifier', 'type', 'status']);
32
+ const data = _.pick(options, [
33
+ 'hitlSessionId',
34
+ 'memberId',
35
+ 'identifier',
36
+ 'type',
37
+ 'status',
38
+ 'state',
39
+ 'disconnectedAt',
40
+ ]);
34
41
 
35
42
  return this.request({
36
43
  method: 'POST',
@@ -39,19 +46,6 @@ export class Conferences extends HITLBase {
39
46
  });
40
47
  }
41
48
 
42
- public static updateConferenceMember(
43
- options: UpdateConferenceMemberOptions
44
- ): Promise<Conference> {
45
- const route = this.getBaseUrl(options);
46
- const data = _.pick(options, ['hitlSessionId', 'memberId', 'identifier', 'status', 'state', 'disconnectedAt']);
47
-
48
- return this.request({
49
- method: 'PUT',
50
- route,
51
- data,
52
- });
53
- }
54
-
55
49
  public static cleanUpConference(
56
50
  options: CleanUpConferenceOptions
57
51
  ): Promise<void> {
@@ -7,10 +7,8 @@ export type GetConferenceMembersOptions = ApiVersionOptions &
7
7
  export type GetConferenceMembersResponse =
8
8
  Conferences.IGetConferenceMembersResponse;
9
9
  export type Conference = Conferences.IConferencesModel;
10
- export type CreateConferenceMemberOptions = ApiVersionOptions &
11
- Conferences.IAddConferenceMemberBody;
12
- export type UpdateConferenceMemberOptions = ApiVersionOptions &
13
- Conferences.IUpdateConferenceMemberBody;
10
+ export type AddOrUpdateConferenceMemberOptions = ApiVersionOptions &
11
+ Conferences.IAddOrUpdateConferenceMemberBody;
14
12
  export type CleanUpConferenceOptions = ApiVersionOptions &
15
13
  NoAccountId<Conferences.ICleanUpConferenceQuery>;
16
14