@activepieces/piece-microsoft-dynamics-crm 0.3.1 → 0.3.2
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 +5 -5
- package/src/lib/actions/create-record.d.ts.map +1 -1
- package/src/lib/actions/create-record.js +5 -0
- package/src/lib/actions/create-record.js.map +1 -1
- package/src/lib/actions/delete-record.d.ts.map +1 -1
- package/src/lib/actions/delete-record.js +5 -0
- package/src/lib/actions/delete-record.js.map +1 -1
- package/src/lib/actions/get-record.d.ts.map +1 -1
- package/src/lib/actions/get-record.js +5 -0
- package/src/lib/actions/get-record.js.map +1 -1
- package/src/lib/actions/update-record.d.ts.map +1 -1
- package/src/lib/actions/update-record.js +5 -0
- package/src/lib/actions/update-record.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-microsoft-dynamics-crm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"lint": "eslint 'src/**/*.ts'"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"@activepieces/pieces-
|
|
13
|
-
"@activepieces/
|
|
14
|
-
"
|
|
11
|
+
"@activepieces/pieces-common": "0.12.3",
|
|
12
|
+
"@activepieces/pieces-framework": "0.30.0",
|
|
13
|
+
"@activepieces/shared": "0.87.1",
|
|
14
|
+
"tslib": "2.6.2"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;
|
|
1
|
+
{"version":3,"file":"create-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;EA4B7B,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.createRecordAction = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'dynamics_crm_create_record',
|
|
11
11
|
displayName: 'Create Record',
|
|
12
12
|
description: 'Creates a new record.',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Creates a new record of a chosen Dynamics 365 / Dataverse entity type (e.g. accounts, contacts, leads), passing the field values for that entity. Pick the entity from its discovered entity-set name or map a raw entity-set name. Not idempotent: each call inserts a new record, so repeated calls create duplicates.',
|
|
16
|
+
idempotent: false,
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
entityType: common_1.DynamicsCRMCommon.entityType('Select or map the entity for which you want to create the record.'),
|
|
15
20
|
fields: common_1.DynamicsCRMCommon.entityFields(true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,uBAAuB;IACpC,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,mEAAmE,CACpE;QACD,MAAM,EAAE,0BAAiB,CAAC,YAAY,CAAC,IAAI,CAAC;KAC7C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAElD,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC1D,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,0TAA0T;QAC5T,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,mEAAmE,CACpE;QACD,MAAM,EAAE,0BAAiB,CAAC,YAAY,CAAC,IAAI,CAAC;KAC7C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAElD,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC1D,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;
|
|
1
|
+
{"version":3,"file":"delete-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;EA4B7B,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.deleteRecordAction = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'dynamics_crm_delete_record',
|
|
11
11
|
displayName: 'Delete Record',
|
|
12
12
|
description: 'Deletes an existing record.',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Permanently deletes a single record from a chosen Dynamics 365 / Dataverse entity type, identified by its record ID (the entity primary-key GUID). Use when an agent must remove a specific known record. Destructive and not idempotent: the first call removes the record and subsequent calls for the same ID fail since it no longer exists.',
|
|
16
|
+
idempotent: false,
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
entityType: common_1.DynamicsCRMCommon.entityType('Select or map the entity name whose records you want to delete.'),
|
|
15
20
|
recordId: common_1.DynamicsCRMCommon.recordId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,iEAAiE,CAClE;QACD,QAAQ,EAAE,0BAAiB,CAAC,QAAQ;KACrC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC5D,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"delete-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kVAAkV;QACpV,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,iEAAiE,CAClE;QACD,QAAQ,EAAE,0BAAiB,CAAC,QAAQ;KACrC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC5D,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;;
|
|
1
|
+
{"version":3,"file":"get-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;;EA4B1B,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.getRecordAction = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'dynamics_crm_get_record',
|
|
11
11
|
displayName: 'Get Record',
|
|
12
12
|
description: 'Retrieves an existing record.',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Fetches a single record from a chosen Dynamics 365 / Dataverse entity type by its record ID (the entity primary-key GUID). Use to read a specific known record before updating, deleting, or referencing it. Read-only and idempotent.',
|
|
16
|
+
idempotent: true,
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
entityType: common_1.DynamicsCRMCommon.entityType('Select or map the entity name whose records you want to retrieve.'),
|
|
15
20
|
recordId: common_1.DynamicsCRMCommon.recordId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,+BAA+B;IAC5C,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,mEAAmE,CACpE;QACD,QAAQ,EAAE,0BAAiB,CAAC,QAAQ;KACrC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QACzD,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,wOAAwO;QAC1O,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,mEAAmE,CACpE;QACD,QAAQ,EAAE,0BAAiB,CAAC,QAAQ;KACrC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QACzD,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;
|
|
1
|
+
{"version":3,"file":"update-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;EA6B7B,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.updateRecordAction = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'dynamics_crm_update_record',
|
|
11
11
|
displayName: 'Update Record',
|
|
12
12
|
description: 'Updates an existing record.',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Updates an existing record of a chosen Dynamics 365 / Dataverse entity type, identified by its record ID (the entity primary-key GUID), applying the supplied field values. Use to modify a specific known record rather than create one. Idempotent: re-sending the same field values to the same ID leaves the record in the same final state.',
|
|
16
|
+
idempotent: true,
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
entityType: common_1.DynamicsCRMCommon.entityType('Select or map the entity for which you want to update the record.'),
|
|
15
20
|
recordId: common_1.DynamicsCRMCommon.recordId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,mEAAmE,CACpE;QACD,QAAQ,EAAE,0BAAiB,CAAC,QAAQ;QACpC,MAAM,EAAE,0BAAiB,CAAC,YAAY,CAAC,KAAK,CAAC;KAC9C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE5D,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QACrE,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,kCAA0C;AAC1C,sCAA0D;AAE7C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kVAAkV;QACpV,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,0BAAiB,CAAC,UAAU,CACtC,mEAAmE,CACpE;QACD,QAAQ,EAAE,0BAAiB,CAAC,QAAQ;QACpC,MAAM,EAAE,0BAAiB,CAAC,YAAY,CAAC,KAAK,CAAC;KAC9C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE5D,MAAM,aAAa,GAAG,UAAoB,CAAC;YAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CACb,CAAC;YAEF,OAAO,MAAM,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QACrE,CAAC;KAAA;CACF,CAAC,CAAC"}
|