@nsshunt/stsutils 1.19.84 → 1.19.85

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.
@@ -3,18 +3,76 @@ import { AgentManager } from './agentManager';
3
3
  export declare class STSAxiosConfig {
4
4
  #private;
5
5
  constructor(url: string, method: string, headers?: JSONObject, timeout?: number);
6
+ /**
7
+ *
8
+ * @param cookies this.#headers['Cookie'] = cookies.join('; ')
9
+ * @returns
10
+ */
6
11
  withCookies(cookies: string[]): this;
12
+ /**
13
+ *
14
+ * @param data Add data to the body
15
+ * @returns
16
+ */
7
17
  withData(data: any): this;
18
+ /**
19
+ *
20
+ * @param accesssToken
21
+ * @param stsUserId
22
+ * @returns this.#headers['Authorization'] = 'Bearer ' + accesssToken; and this.#headers['x-sts_user_id'] = stsUserId;
23
+ */
8
24
  withAuthHeaders(accesssToken: string, stsUserId?: string): this;
25
+ /**
26
+ *
27
+ * @param headers Add headers to the existing header
28
+ * @returns
29
+ */
9
30
  withHeaders(headers: JSONObject): this;
31
+ /**
32
+ *
33
+ * @returns this.#headers['Content-Type'] = 'application/fhir+json';
34
+ */
10
35
  withApplicationFhirAndJsonContentTypeHeaders(): this;
36
+ /**
37
+ *
38
+ * @returns this.#headers['Content-Type'] = 'application/merge-patch+json';
39
+ */
11
40
  withApplicationMergePatchAndJsonContentTypeHeaders(): this;
41
+ /**
42
+ *
43
+ * @returns this.#headers['Content-Type'] = 'application/json-patch+json';
44
+ */
12
45
  withApplicationJsonPatchAndJsonContentTypeHeaders(): this;
46
+ /**
47
+ *
48
+ * @returns this.#headers['Content-Type'] = 'application/json';
49
+ */
13
50
  withApplicationJsonContentTypeHeaders(): this;
51
+ /**
52
+ *
53
+ * @returns this.#headers['Content-Type'] = 'application/json';
54
+ */
14
55
  withDefaultHeaders(): this;
56
+ /**
57
+ *
58
+ * @returns
59
+ */
15
60
  withCredentials(): this;
61
+ /**
62
+ *
63
+ * @param timeout Add a connection timeout
64
+ * @returns
65
+ */
16
66
  withTimeout(timeout: number): this;
67
+ /**
68
+ *
69
+ * @param agentManager Add the agent manager for each rest call. Only for nodejs not browser.
70
+ * @returns
71
+ */
17
72
  withAgentManager(agentManager: AgentManager): this;
73
+ /**
74
+ * @returns Returns axios config object
75
+ */
18
76
  get config(): JSONObject;
19
77
  }
20
78
  //# sourceMappingURL=stsAxiosConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stsAxiosConfig.d.ts","sourceRoot":"","sources":["../src/stsAxiosConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,qBAAa,cAAc;;gBAUX,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,MAAM;IAW/E,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE;IAS7B,QAAQ,CAAC,IAAI,EAAE,GAAG;IAOlB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAWxD,WAAW,CAAC,OAAO,EAAE,UAAU;IAQ/B,4CAA4C;IAQ5C,kDAAkD;IAQlD,iDAAiD;IAQjD,qCAAqC;IAQrC,kBAAkB;IAQlB,eAAe;IAKf,WAAW,CAAC,OAAO,EAAE,MAAM;IAK3B,gBAAgB,CAAC,YAAY,EAAE,YAAY;IAK3C,IAAI,MAAM,IAAI,UAAU,CAyBvB;CACJ"}
1
+ {"version":3,"file":"stsAxiosConfig.d.ts","sourceRoot":"","sources":["../src/stsAxiosConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,qBAAa,cAAc;;gBAUX,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM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