-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
2,219 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 133 additions & 0 deletions
133
src/api/common-content/content-types/common-content/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "common_contents", | ||
"info": { | ||
"singularName": "common-content", | ||
"pluralName": "common-contents", | ||
"displayName": "Common content", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"attributes": { | ||
"internalName": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "string", | ||
"unique": true, | ||
"required": true | ||
}, | ||
"privacyNoticeUrl": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$", | ||
"required": true | ||
}, | ||
"privacyNoticeDownloadUrl": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"required": true, | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$" | ||
}, | ||
"termsOfServiceUrl": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$", | ||
"required": true | ||
}, | ||
"termsOfServiceDownloadUrl": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"required": true, | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$" | ||
}, | ||
"cancellationUrl": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$" | ||
}, | ||
"emailIcon": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$" | ||
}, | ||
"successActionButtonLabel": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "string" | ||
}, | ||
"successActionButtonUrl": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"required": true, | ||
"regex": "^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-/]))?$" | ||
}, | ||
"newsletterLabelTextCode": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "customField", | ||
"options": [ | ||
"mdnplus", | ||
"snp" | ||
], | ||
"customField": "plugin::multi-select.multi-select" | ||
}, | ||
"newsletterSlug": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "customField", | ||
"options": [ | ||
"mozilla-accounts", | ||
"mdnplus", | ||
"security-privacy-news" | ||
], | ||
"customField": "plugin::multi-select.multi-select" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* common-content controller | ||
*/ | ||
|
||
const { createCoreController } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreController('api::common-content.common-content'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* common-content router | ||
*/ | ||
|
||
const { createCoreRouter } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreRouter('api::common-content.common-content'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* common-content service | ||
*/ | ||
|
||
const { createCoreService } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreService('api::common-content.common-content'); |
66 changes: 66 additions & 0 deletions
66
src/api/coupon-config/content-types/coupon-config/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "coupon_configs", | ||
"info": { | ||
"singularName": "coupon-config", | ||
"pluralName": "coupon-configs", | ||
"displayName": "Coupon config", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"internalName": { | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"countries": { | ||
"type": "customField", | ||
"options": [ | ||
"AT - Austria", | ||
"BE - Belgium", | ||
"BG - Bulgaria", | ||
"CA - Canada", | ||
"HR - Croatia", | ||
"CY - Cyprus", | ||
"CZ - Czech Republic", | ||
"DK - Denmark", | ||
"EE - Estonia", | ||
"FI - Finland", | ||
"FR - France", | ||
"DE - Germany", | ||
"GR - Greece", | ||
"HU - Hungary", | ||
"IE - Ireland", | ||
"IT - Italy", | ||
"LV - Latvia", | ||
"LT - Lithuania", | ||
"LU - Luxembourg", | ||
"MY - Malaysia", | ||
"MT - Malta", | ||
"NL - Netherlands", | ||
"NZ - New Zealand", | ||
"PL - Poland", | ||
"PT - Portugal", | ||
"RO - Romania", | ||
"SG - Singapore", | ||
"SK - Slovakia", | ||
"SI - Slovenia", | ||
"ES - Spain", | ||
"SE - Sweden", | ||
"CH - Switzerland", | ||
"UK - United Kingdom", | ||
"US - United States" | ||
], | ||
"customField": "plugin::multi-select.multi-select" | ||
}, | ||
"stripePromotionCodes": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "stripe.stripe-promo-codes" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* coupon-config controller | ||
*/ | ||
|
||
const { createCoreController } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreController('api::coupon-config.coupon-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* coupon-config router | ||
*/ | ||
|
||
const { createCoreRouter } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreRouter('api::coupon-config.coupon-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* coupon-config service | ||
*/ | ||
|
||
const { createCoreService } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreService('api::coupon-config.coupon-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "iaps", | ||
"info": { | ||
"singularName": "iap", | ||
"pluralName": "iaps", | ||
"displayName": "IAP", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"internalName": { | ||
"type": "string", | ||
"required": false, | ||
"unique": false | ||
}, | ||
"appleProductIDs": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "iap.apple-product-i-ds" | ||
}, | ||
"googleSKUs": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "iap.google-sk-us" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* iap controller | ||
*/ | ||
|
||
const { createCoreController } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreController('api::iap.iap'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* iap router | ||
*/ | ||
|
||
const { createCoreRouter } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreRouter('api::iap.iap'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* iap service | ||
*/ | ||
|
||
const { createCoreService } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreService('api::iap.iap'); |
Oops, something went wrong.