@chotot/ct-logic-uni-rev-order-v1 1.201.0 → 1.202.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.
package/onbehalf_service.proto
CHANGED
|
@@ -27,6 +27,7 @@ message CreateOnbehalfOrderRequest {
|
|
|
27
27
|
repeated CreateOnbehalfOrderServiceRequest services = 5 [(validate.rules).repeated = {min_items: 1}];
|
|
28
28
|
bool is_active = 6;
|
|
29
29
|
string full_name = 7;
|
|
30
|
+
string payment_method = 8; // e.g. credit, credit_biz
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
message CreateOnbehalfOrderServiceRequest {
|
package/onbehalf_service_pb.d.ts
CHANGED
|
@@ -70,6 +70,13 @@ export declare class CreateOnbehalfOrderRequest extends Message<CreateOnbehalfOr
|
|
|
70
70
|
*/
|
|
71
71
|
fullName: string;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* e.g. credit, credit_biz
|
|
75
|
+
*
|
|
76
|
+
* @generated from field: string payment_method = 8;
|
|
77
|
+
*/
|
|
78
|
+
paymentMethod: string;
|
|
79
|
+
|
|
73
80
|
constructor(data?: PartialMessage<CreateOnbehalfOrderRequest>);
|
|
74
81
|
|
|
75
82
|
static readonly runtime: typeof proto3;
|
package/onbehalf_service_pb.js
CHANGED
|
@@ -31,6 +31,7 @@ export const CreateOnbehalfOrderRequest = proto3.makeMessageType(
|
|
|
31
31
|
{ no: 5, name: "services", kind: "message", T: CreateOnbehalfOrderServiceRequest, repeated: true },
|
|
32
32
|
{ no: 6, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
33
33
|
{ no: 7, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
34
|
+
{ no: 8, name: "payment_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
34
35
|
],
|
|
35
36
|
);
|
|
36
37
|
|
package/package.json
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const fs = require('fs').promises;
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
async function modifyPackageJson() {
|
|
5
|
-
const args = process.argv.slice(2);
|
|
6
|
-
if (args.length < 4) {
|
|
7
|
-
console.error('Usage: node modify_package_json.js <packageExtractPath> <newName> <newVersion> <verdaccioHostname>');
|
|
8
|
-
process.exit(1);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const packageExtractPath = args[0]; // e.g., /tmp/npm-migration-xxxxxx/package
|
|
12
|
-
const newName = args[1];
|
|
13
|
-
const newVersion = args[2];
|
|
14
|
-
const verdaccioHostname = args[3]; // e.g., npmjs.cmco.io
|
|
15
|
-
|
|
16
|
-
const packageJsonPath = path.join(packageExtractPath, 'package.json');
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
console.log(`Reading package.json from: ${packageJsonPath}`);
|
|
20
|
-
let packageJsonContent = await fs.readFile(packageJsonPath, 'utf8');
|
|
21
|
-
let packageJson = JSON.parse(packageJsonContent);
|
|
22
|
-
|
|
23
|
-
console.log(`Original name: ${packageJson.name}, version: ${packageJson.version}`);
|
|
24
|
-
|
|
25
|
-
packageJson.name = newName;
|
|
26
|
-
packageJson.version = newVersion;
|
|
27
|
-
|
|
28
|
-
// Remove publishConfig if it points to the old Verdaccio registry
|
|
29
|
-
if (packageJson.publishConfig && packageJson.publishConfig.registry) {
|
|
30
|
-
try {
|
|
31
|
-
const publishRegistryUrl = new URL(packageJson.publishConfig.registry);
|
|
32
|
-
if (publishRegistryUrl.hostname === verdaccioHostname) {
|
|
33
|
-
delete packageJson.publishConfig;
|
|
34
|
-
console.log(`Removed publishConfig pointing to ${verdaccioHostname}`);
|
|
35
|
-
}
|
|
36
|
-
} catch (e) {
|
|
37
|
-
console.warn(`Could not parse publishConfig.registry: ${packageJson.publishConfig.registry}. Skipping removal.`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
42
|
-
console.log(`Successfully modified package.json. New name: ${packageJson.name}, new version: ${packageJson.version}`);
|
|
43
|
-
|
|
44
|
-
} catch (error) {
|
|
45
|
-
console.error(`Error modifying package.json at ${packageJsonPath}:`, error);
|
|
46
|
-
process.exit(1);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
modifyPackageJson();
|