iv-npm 1.5.50 → 1.5.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.5.50",
3
+ "version": "1.5.51",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -48,7 +48,7 @@ declare function buildURL(url: string, params: any): string;
48
48
 
49
49
  declare function apiConfiger(config: any): any;
50
50
 
51
- declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL";
51
+ declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL" | "CCFLOW_URL";
52
52
  declare function hostConfiger(key: HostKey): string;
53
53
 
54
54
  declare type formatType = {
@@ -157,7 +157,8 @@ function hostConfiger(key) {
157
157
  ASSET_URL: "https://gateway.nacho.cn",
158
158
  ASSETS_URL: "https://assets.nacho.cn",
159
159
  GATEWAY_URL: "https://gateway.nacho.cn",
160
- SFM_URL: "https://sfm.nacho.cn"
160
+ SFM_URL: "https://sfm.nacho.cn",
161
+ CCFLOW_URL: "https://ccflow.nacho.cn/"
161
162
  };
162
163
  try {
163
164
  if (process.env.VITE_APP_BASE_URL)
@@ -232,6 +233,9 @@ function hostConfiger(key) {
232
233
  case "SFM_URL":
233
234
  preString = "sfm";
234
235
  break;
236
+ case "CCFLOW_URL":
237
+ preString = "ccflow";
238
+ break;
235
239
  default:
236
240
  throw new Error("no matching arguments\uFF01");
237
241
  }
@@ -239,6 +239,16 @@ declare const API_OPTION: {
239
239
  };
240
240
  baseUrl: string;
241
241
  };
242
+ sendApproval: {
243
+ url: string;
244
+ option: {
245
+ headers: {
246
+ [props: string]: any;
247
+ };
248
+ method: string;
249
+ };
250
+ baseUrl: string;
251
+ };
242
252
  };
243
253
  export declare const formatHTTP: (fetch: any) => Promise<any>;
244
254
  export declare const formatUrl: (base: string, api: string, params?: object) => string;