@wtree/payload-ecommerce-coupon 3.77.8 → 3.77.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReferralProgramsCollection.d.ts","sourceRoot":"","sources":["../../src/collections/createReferralProgramsCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AA0B7D,eAAO,MAAM,gCAAgC,GAC3C,cAAc,4BAA4B,KACzC,
|
|
1
|
+
{"version":3,"file":"createReferralProgramsCollection.d.ts","sourceRoot":"","sources":["../../src/collections/createReferralProgramsCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AA0B7D,eAAO,MAAM,gCAAgC,GAC3C,cAAc,4BAA4B,KACzC,gBAsZF,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -436,9 +436,10 @@ const createReferralProgramsCollection = (pluginConfig) => {
|
|
|
436
436
|
return {
|
|
437
437
|
slug: collections.referralProgramsSlug,
|
|
438
438
|
admin: {
|
|
439
|
-
useAsTitle: "
|
|
439
|
+
useAsTitle: "name",
|
|
440
440
|
defaultColumns: [
|
|
441
441
|
"id",
|
|
442
|
+
"name",
|
|
442
443
|
"commissionRules",
|
|
443
444
|
"isActive"
|
|
444
445
|
],
|
|
@@ -529,6 +530,12 @@ const createReferralProgramsCollection = (pluginConfig) => {
|
|
|
529
530
|
return data;
|
|
530
531
|
}] },
|
|
531
532
|
fields: [
|
|
533
|
+
{
|
|
534
|
+
name: "name",
|
|
535
|
+
type: "text",
|
|
536
|
+
required: true,
|
|
537
|
+
admin: { description: "Name of the referral program" }
|
|
538
|
+
},
|
|
532
539
|
{
|
|
533
540
|
name: "isActive",
|
|
534
541
|
type: "checkbox",
|